Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Error"/> class.
 /// </summary>
 /// <param name="logger">Logging interface.</param>
 /// <param name="errorComponent">Error component.</param>
 /// <param name="identity">Route identity.</param>
 public Error(ILogger logger, IErrorComponent errorComponent, string identity) : base(logger, identity)
 {
     this.errorComponent        = errorComponent;
     this.errorComponent.OnLog += this.OnLog;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new Error component chain.
 /// </summary>
 /// <param name="errorComponent">Error component.</param>
 /// <returns>Returns an instance of the <see cref="Builder"/> class.</returns>
 public Builder Error(IErrorComponent errorComponent)
 {
     this.errorComponent = errorComponent;
     return(this);
 }