Revize 33c231a4
Přidáno uživatelem Jakub Šilhavý před asi 2 roky(ů)
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; |
Také k dispozici: Unified diff
re #9568 Fixed formatting