Ejemplo n.º 1
0
 /// <summary>
 /// Constructor for StandardRetryPolicy.
 /// </summary>
 /// <param name="config">The Client config object. This is used to
 /// retrieve the maximum number of retries  before throwing
 /// back a exception(This does not count the initial request) and
 /// the service URL for the request.</param>
 public StandardRetryPolicy(IClientConfig config)
 {
     this.MaxRetries = config.MaxErrorRetry;
     if (config.ThrottleRetries)
     {
         string serviceURL = config.DetermineServiceURL();
         RetryCapacity = CapacityManagerInstance.GetRetryCapacity(serviceURL);
     }
 }