Ejemplo n.º 1
0
 private void GlobalConnectionPolicyOnRetrying(object sender, RetryingEventArgs retryingEventArgs)
 {
     if (Retrying != null)
     {
         var ev = Retrying;
         ev(sender, retryingEventArgs);
     }
 }
Ejemplo n.º 2
0
 private void RetryWaring(RetryingEventArgs e)
 {
     this.dynamicThrottling.Penalize();
     Trace.TraceWarning(
         "An error occurred in attempt number {1} to receive a message from subscription {2}: {0}",
         e.LastException.Message,
         e.CurrentRetryCount,
         this.subscription);
 }
        internal void InvokeRetrying(object sender, RetryingEventArgs args)
        {
            EventHandler <RetryingEventArgs> retrying = this.Retrying;

            retrying?.Invoke(sender, args);
        }