public HttpRetryHandler(int attempts, int delaySeconds, HttpMessageHandler innerHandler = default(HttpMessageHandler))
     : base()
 {
     this.InnerHandler = innerHandler.IsDefaultOrNull() ? new HttpClientHandler() : innerHandler;
     this.attempts     = attempts;
     this.delaySeconds = delaySeconds;
 }
Exemple #2
0
 public RefreshTokenMessageHandler(HttpMessageHandler innerHandler = default(HttpMessageHandler))
     : base()
 {
     this.InnerHandler = innerHandler.IsDefaultOrNull() ?
                         new HttpClientHandler()
         :
                         innerHandler;
 }
 public ThrottleMessageHandler(HttpMessageHandler innerHandler = default(HttpMessageHandler))
     : base()
 {
     if (innerHandler.IsDefaultOrNull())
     {
         innerHandler = new HttpClientHandler();
     }
     this.InnerHandler = innerHandler;
 }
        public SharedKeySignatureStoreTablesMessageHandler(string azureStorageAccount, string azureStorageAccountSharedKey, HttpMessageHandler innerHandler = default(HttpMessageHandler))
            : base()
        {
            this.azureStorageAccount = azureStorageAccount;
            this.key = Convert.FromBase64String(azureStorageAccountSharedKey);

            if (innerHandler.IsDefaultOrNull())
            {
                innerHandler = new HttpClientHandler();
            }
            this.InnerHandler = innerHandler;
        }