Projekt

Obecné

Profil

Stáhnout (756 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using LDClient.network.data;
2

    
3
namespace LDClient.network {
4
    
5
    /// <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
    public interface IApiClient {
10
        
11
        /// <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
        public Task SendPayloadAsync(Payload payload);
16
        
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
        public void Run();
22
    }
23
}
(3-3/4)