Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 33c231a4

Přidáno uživatelem Jakub Šilhavý před asi 2 roky(ů)

re #9568 Fixed formatting

Zobrazit rozdíly:

ld_client/LDClient/detection/InfoFetcher.cs
10 10
        private readonly string[] _f32RemArguments;
11 11
        private readonly int _f32SuccessExitCode;
12 12
        private readonly int _f32WaitTimeoutMs;
13
        
14 13
        private readonly uint _maxAttempts;
15 14
        private readonly uint _waitPeriodMs;
16 15
        private readonly string _infoFilePath;
ld_client/LDClient/detection/ProcessDetection.cs
4 4

  
5 5
namespace LDClient.detection {
6 6
   
7
	 public class ProcessProcessDetection : IProcessDetection {
7
	 public sealed class ProcessProcessDetection : IProcessDetection {
8 8
        
9 9
        private const string DatetimeFormat = "yyyy-MM-dd hh:mm:ss";
10 10

  
11 11
        private readonly string _processName;
12 12
        private readonly uint _detectionPeriodMs;
13
        private readonly InfoFetcher _infoFetcher;
14
        private readonly IApiClient _apiClient;
15
        
13 16
        private bool _processIsActive;
14 17
        private bool _failedToRetrieveData;
15 18
        private Payload? _lastConnectedPayload;
16 19

  
17
        private readonly InfoFetcher _infoFetcher;
18
        private readonly IApiClient _apiClient;
19

  
20 20
        public ProcessProcessDetection(string processName, uint detectionPeriodMs, InfoFetcher infoFetcher, IApiClient apiClient) {
21 21
            _processName = processName;
22 22
            _detectionPeriodMs = detectionPeriodMs;
ld_client/LDClient/network/ApiClient.cs
8 8

  
9 9
namespace LDClient.network {
10 10
    
11
    public class ApiClient : IApiClient {
11
    public sealed class ApiClient : IApiClient {
12 12
        
13 13
        private readonly string _uri;
14 14
        private readonly HttpClient _client;
......
17 17
        private readonly uint _maxEntries;
18 18
        private readonly uint _maxRetries;
19 19
        
20
        public ApiClient(string url, uint port, string path, uint retryPeriod, uint maxEntries, uint maxRetries,
21
            string cacheFilename) {
20
        public ApiClient(string url, uint port, string path, uint retryPeriod, uint maxEntries, uint maxRetries, string cacheFilename) {
22 21
            _uri = $"{url}:{port}{path}";
23 22
            _retryPeriod = retryPeriod;
24 23
            _maxEntries = maxEntries;
ld_client/LDClient/utils/ConfigLoader.cs
7 7

  
8 8
        private const int ErrorExitCode = 1;
9 9
        private const string ConfigFile = "appsettings.json";
10
        
11 10
        private const string LoggingSection = "Logging";
12 11
        private const string NetworkSection = "Network";
13 12
        private const string CacheSection = "Cache";

Také k dispozici: Unified diff