Exemple #1
0
 public WebApiClient(int timeout, string resource, NetworkCredential networkCredential) : base(timeout)
 {
     AuthenticatedCredentials = new AuthenticationCredentials
     {
         Resource          = resource,
         NetworkCredential = networkCredential
     };
     Initialize();
 }
Exemple #2
0
 public WebApiClient(string resource, NetworkCredential networkCredential) : base(DEFAULT_TIMEOUT)
 {
     AuthenticatedCredentials = new AuthenticationCredentials
     {
         Resource          = resource,
         NetworkCredential = networkCredential
     };
     Initialize();
 }
Exemple #3
0
 public WebApiClient(string tenant, string clientId, string clientSecret, string resource) : base(DEFAULT_TIMEOUT)
 {
     AuthenticatedCredentials = new AuthenticationCredentials
     {
         Tenant       = tenant,
         ClientId     = clientId,
         ClientSecret = clientSecret,
         Resource     = resource
     };
     Initialize();
 }
Exemple #4
0
 public WebApiClient(int timeout, string tenant, string clientId, string clientSecret, string resource) : base(timeout)
 {
     AuthenticatedCredentials = new AuthenticationCredentials
     {
         Tenant       = tenant,
         ClientId     = clientId,
         ClientSecret = clientSecret,
         Resource     = resource,
     };
     Initialize();
 }
Exemple #5
0
        public WebApiClient(string resource, NetworkCredential networkCredential, int retry) : base(DEFAULT_TIMEOUT)
        {
            AuthenticatedCredentials = new AuthenticationCredentials
            {
                Resource          = resource,
                NetworkCredential = networkCredential
            };

            CreateRetryPolicy(retry);

            Initialize();
        }