Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d49f4d79

Přidáno uživatelem Pultak před asi 2 roky(ů)

re #9712 main new info fetcher redefinition

Zobrazit rozdíly:

ld_client/LDClient/Program.cs
33 33
    /// Instance of an API client.
34 34
    /// </summary>
35 35
    private static IApiClient? DefaultApiClient { get; set; }
36
    
36

  
37
    /*
38

  
39
    It is possible to use previous info fetching method
40

  
37 41
    /// <summary>
38 42
    /// Instance of an info fetcher.
39 43
    /// </summary>
40
    private static readonly InfoFetcher InfoFetcher = new(
44
    private static readonly IInfoFetcher InfoFetcher = new(
41 45
        Config.FetchInfoMaxAttempts,
42 46
        Config.FetchInfoAttemptPeriod,
43 47
        Config.T32InfoLocation,
44
        Config.F32RemExecutable,
45
        Config.F32RemArguments,
48
        Config.T32RemExecutable,
49
        Config.T32RemArguments,
46 50
        Config.T32RemSuccessExitCode,
47 51
        Config.T32RemWaitTimeoutMs
48 52
    );
49
    
53
    */
54
    /// <summary>
55
    /// Instance of an info fetcher
56
    /// </summary>
57
    private static readonly IInfoFetcher InfoFetcher = new T32ApiFetcher(
58
        Config.FetchInfoMaxAttempts,
59
        Config.FetchInfoAttemptPeriod,
60
        Config.T32InfoLocation,
61
        Config.T32ApiAddress,
62
        Config.T32ApiPort,
63
        Config.T32ApiPacketLen,
64
        Config.T32ApiCommands
65
    );
66

  
50 67
    /// <summary>
51 68
    /// The main entry pint of the application.
52 69
    /// </summary>

Také k dispozici: Unified diff