Ejemplo n.º 1
0
        public DeputyClient(IAuthenticator authenticator, DeputyOptions options, IHttpClient httpClient)
        {
            _authenticator = authenticator;
            _httpClient    = httpClient;

            Addresses = new AddressResourceEndpoint(_authenticator, _httpClient, _serializer);
            Contacts  = new ContactResourceEndpoint(_authenticator, _httpClient, _serializer);
            Employees = new EmployeeResourceEndpoint(_authenticator, _httpClient, _serializer);
        }
Ejemplo n.º 2
0
 private static string GetBaseUri(DeputyOptions options) => $"https://{options.Endpoint}/api/{options.ApiVersion}";
Ejemplo n.º 3
0
 public DeputyClient(IAuthenticator authenticator, DeputyOptions options)
     : this(authenticator, options, new Transport.HttpClient(GetBaseUri(options)))
 {
 }