/// <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; }
/// <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; }