예제 #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);
        }
예제 #2
0
 private static string GetBaseUri(DeputyOptions options) => $"https://{options.Endpoint}/api/{options.ApiVersion}";
예제 #3
0
 public DeputyClient(IAuthenticator authenticator, DeputyOptions options)
     : this(authenticator, options, new Transport.HttpClient(GetBaseUri(options)))
 {
 }