Projekt

Obecné

Profil

Stáhnout (756 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 3c82c2ad Pultak
using LDClient.network.data;
2
3
namespace LDClient.network {
4 f281acac silhavyj
    
5 a155a763 silhavyj
    /// <summary>
6
    /// This interface defines the functionality of an API client
7
    /// which is used to send information (payloads) to the server.
8
    /// </summary>
9 3c82c2ad Pultak
    public interface IApiClient {
10 f281acac silhavyj
        
11 a155a763 silhavyj
        /// <summary>
12
        /// Sends a payload to the server (API).
13
        /// </summary>
14
        /// <param name="payload">instance of a payload to be sent off to the server</param>
15 3c82c2ad Pultak
        public Task SendPayloadAsync(Payload payload);
16 a155a763 silhavyj
        
17
        /// <summary>
18
        /// Runs the periodical retrieval of failed payloads stored
19
        /// in a file-based cache. This method is instantiated as a thread.
20
        /// </summary>
21 88eab964 Pultak
        public void Run();
22 3c82c2ad Pultak
    }
23
}