Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f63d5489

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

re #9570 Commented DebuggerInfoParser.cs, IInfoFetcher.cs, and InfoFetcher.cs

Zobrazit rozdíly:

ld_client/LDClient/detection/IInfoFetcher.cs
5 5
using System.Threading.Tasks;
6 6

  
7 7
namespace LDClient.detection {
8
    
9
    /// <summary>
10
    /// This interface defines the functionality of an info fetcher which
11
    /// takes care of sending commands to the debugger. 
12
    /// </summary>
8 13
    public interface IInfoFetcher {
9 14

  
15
        /// <summary>
16
        /// Returns the head serial number of the debugger.
17
        /// </summary>
10 18
        public string HeadSerialNumber { get; set; }
19
        
20
        /// <summary>
21
        /// Returns the body serial number of the debugger.
22
        /// </summary>
11 23
        public string BodySerialNumber { get; set; }
12 24

  
25
        /// <summary>
26
        /// Fetches data from the debugger. It sends the commands defined
27
        /// in the appsettings.json file to the debugger and tries to
28
        /// parse the .txt (contains the serial numbers).
29
        /// </summary>
30
        /// <returns>True, if data was fetched successfully. False otherwise.</returns>
13 31
        public Task<bool> FetchDataAsync();
14 32
    }
15 33
}

Také k dispozici: Unified diff