Revize 4dcc6c07
Přidáno uživatelem Jakub Šilhavý před asi 2 roky(ů)
ld_client/LDClient/utils/ConfigLoader.cs | ||
---|---|---|
44 | 44 |
public uint DetectionPeriod { get; private set; } |
45 | 45 |
public string T32InfoLocation { get; private set; } |
46 | 46 |
public string F32RemExecutable { get; private set; } |
47 |
public string F32RemArguments { get; private set; } |
|
48 | 47 |
public uint FetchInfoMaxAttempts { get; private set; } |
49 | 48 |
public uint FetchInfoAttemptPeriod { get; private set; } |
50 |
|
|
49 |
public string[] F32RemArguments { get; private set; } |
|
50 |
public int T32RemSuccessExitCode { get; private set; } |
|
51 |
public int T32RemWaitTimeoutMs { get; private set; } |
|
52 |
|
|
51 | 53 |
#endregion |
52 | 54 |
|
53 | 55 |
public ConfigLoader() { |
... | ... | |
85 | 87 |
T32InfoLocation = debugger["T32InfoLocation"]; |
86 | 88 |
DetectionPeriod = uint.Parse(debugger["DetectionPeriod"]); |
87 | 89 |
F32RemExecutable = debugger["F32RemExecutable"]; |
88 |
F32RemArguments = debugger["F32RemArguments"]; |
|
89 | 90 |
FetchInfoMaxAttempts = uint.Parse(debugger["FetchInfoMaxAttempts"]); |
90 | 91 |
FetchInfoAttemptPeriod = uint.Parse(debugger["FetchInfoAttemptPeriod"]); |
92 |
T32RemSuccessExitCode = int.Parse(debugger["T32RemSuccessExitCode"]); |
|
93 |
T32RemWaitTimeoutMs = int.Parse(debugger["T32RemWaitTimeoutMs"]); |
|
94 |
F32RemArguments = configuration.GetSection($"{DdSection}:F32RemCommands").GetChildren().Select(key => key.Value).ToArray(); |
|
91 | 95 |
|
92 | 96 |
Console.WriteLine("Configuration successfully loaded!"); |
93 | 97 |
} catch (FormatException e) { |
Také k dispozici: Unified diff
re #9568 Added all 4 commands (arguments) to be sent to the debugger into the configuration file.