Projekt

Obecné

Profil

Stáhnout (866 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
namespace LDClient.detection; 
2

    
3
/// <summary>
4
/// This interface defines the functionality of an info fetcher which
5
/// takes care of sending commands to the debugger. 
6
/// </summary>
7
public interface IInfoFetcher {
8

    
9
    /// <summary>
10
    /// Returns the head serial number of the debugger.
11
    /// </summary>
12
    public string HeadSerialNumber { get; set; }
13
        
14
    /// <summary>
15
    /// Returns the body serial number of the debugger.
16
    /// </summary>
17
    public string BodySerialNumber { get; set; }
18

    
19
    /// <summary>
20
    /// Fetches data from the debugger. It sends the commands defined
21
    /// in the appsettings.json file to the debugger and tries to
22
    /// parse the .txt (contains the serial numbers).
23
    /// </summary>
24
    /// <returns>True, if data was fetched successfully. False otherwise.</returns>
25
    public Task<bool> FetchDataAsync();
26
}
(3-3/10)