A IRetryPolicy that composes a list of other policies and delegates calls to them in order.
Inheritance: IRetryPolicy
コード例 #1
0
 /// <summary>Initializes a new instance of the <see cref="CompositeRetryContext"/> class.</summary>
 /// <param name="parent">The parent.</param>
 /// <param name="contexts">The contexts.</param>
 /// <param name="outer">The outer.</param>
 public CompositeRetryContext(IRetryContext parent, List <IRetryContext> contexts, CompositeRetryPolicy outer) : base(parent)
 {
     this.contexts = contexts.ToArray();
     this.policies = this.outer.policies;
     this.outer    = outer;
 }
コード例 #2
0
 /// <summary>Initializes a new instance of the <see cref="CompositeRetryContext"/> class.</summary>
 /// <param name="parent">The parent.</param>
 /// <param name="contexts">The contexts.</param>
 /// <param name="outer">The outer.</param>
 public CompositeRetryContext(IRetryContext parent, List<IRetryContext> contexts, CompositeRetryPolicy outer)
     : base(parent)
 {
     this.contexts = contexts.ToArray();
     this.policies = this.outer.policies;
     this.outer = outer;
 }