Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f09385a3

Přidáno uživatelem Pultak před více než 2 roky(ů)

re #9712 Added configuration properties of the t32 api

Zobrazit rozdíly:

ld_client/LDClient/utils/ConfigLoader.cs
38 38
        /// </summary>
39 39
        private const string DdSection = "DebuggerDetection";
40 40

  
41

  
42
        public string[] T32ApiCommands { get; private set; } = null!;
43
        public string T32ApiAddress { get; private set; } = null!;
44
        public string T32ApiPort { get; private set; } = null!;
45
        public string T32ApiPacketLen { get; private set; } = null!;
46

  
41 47
        #region Logger
42
        
48

  
43 49
        /// <summary>
44 50
        /// Maximum size of the log file (it will start to rotate when this limit is reached).
45 51
        /// </summary>
......
135 141
        /// <summary>
136 142
        /// Path to the t32rem.exe which is used to send commands to a debugger.
137 143
        /// </summary>
138
        public string F32RemExecutable { get; private set; } = null!;
144
        public string T32RemExecutable { get; private set; } = null!;
139 145
        
140 146
        /// <summary>
141 147
        /// How many times the application attempts to check if there
......
151 157
        /// <summary>
152 158
        /// Arguments (commands) sent to the t32rem.exe file.
153 159
        /// </summary>
154
        public string[] F32RemArguments { get; private set; } = null!;
160
        public string[] T32RemArguments { get; private set; } = null!;
155 161
        
156 162
        /// <summary>
157 163
        /// Status code indication successful execution of the t32rem.exe file.
......
251 257
                T32ProcessName = debugger["T32ProcessName"];
252 258
                T32InfoLocation = debugger["T32InfoLocation"];
253 259
                DetectionPeriod = uint.Parse(debugger["DetectionPeriod"]);
254
                F32RemExecutable = debugger["F32RemExecutable"];
260
                T32RemExecutable = debugger["T32RemExecutable"];
255 261
                FetchInfoMaxAttempts = uint.Parse(debugger["FetchInfoMaxAttempts"]);
256 262
                FetchInfoAttemptPeriod = uint.Parse(debugger["FetchInfoAttemptPeriod"]);
257 263
                T32RemSuccessExitCode = int.Parse(debugger["T32RemSuccessExitCode"]);
258 264
                T32RemWaitTimeoutMs = int.Parse(debugger["T32RemWaitTimeoutMs"]);
259
                F32RemArguments = configuration.GetSection($"{DdSection}:F32RemArguments").GetChildren().Select(key => key.Value).ToArray();
265
                T32RemArguments = configuration.GetSection($"{DdSection}:T32RemArguments").GetChildren().Select(key => key.Value).ToArray();
266
                T32ApiCommands = configuration.GetSection($"{DdSection}:T32ApiCommands").GetChildren().Select(key => key.Value).ToArray();
267
                T32ApiAddress = debugger["T32ApiAddress"];
268
                T32ApiPort = debugger["T32ApiPort"];
269
                T32ApiPacketLen = debugger["T32ApiPacketLen"];
270
                
260 271
            } catch (Exception e) {
261 272
                Console.WriteLine(e);
262 273
                Environment.Exit(ErrorExitCode);

Také k dispozici: Unified diff