private IRetryContext GetContext(IRetryPolicy policy, IRetryContext parent) { IRetryContext context; this.contexts.TryGetValue(policy, out context); if (context == null) { context = policy.Open(parent); this.contexts.Add(policy, context); } return(context); }
private IRetryContext DoOpenInternal(IRetryPolicy retryPolicy) { return(retryPolicy.Open(RetrySynchronizationManager.GetContext())); }
private IRetryContext GetContext(IRetryPolicy policy, IRetryContext parent) { IRetryContext context; this.contexts.TryGetValue(policy, out context); if (context == null) { context = policy.Open(parent); this.contexts.Add(policy, context); } return context; }