コード例 #1
0
        /// <summary>
        /// Adds a processing component.
        /// </summary>
        /// <param name="processComponent">Component to add.</param>
        /// <returns>Returns an instance of the <see cref="RouteBuilder"/> class.</returns>
        public RouteBuilder Process(IProcessComponent processComponent)
        {
            this.components.Add(Entities.Processable.Create(processComponent));

            return(this);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Processable"/> class.
 /// </summary>
 /// <param name="target">Target component.</param>
 protected Processable(IProcessComponent target)
 {
     this.Invocation = InvocationType.Concrete;
     this.Component  = target;
 }
コード例 #3
0
 /// <summary>
 /// Creates an instance of the <see cref="Processable"/> class.
 /// </summary>
 /// <param name="component">Concrete component.</param>
 /// <returns>Returns an instance of the <see cref="Processable"/> class.</returns>
 public static Processable Create(IProcessComponent component)
 {
     return(new Processable(component));
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Process"/> class.
 /// </summary>
 /// <param name="logger">Logger class.</param>
 /// <param name="processComponent">Processing component.</param>
 /// <param name="identity">Identity of route.</param>
 public Process(ILogger logger, IProcessComponent processComponent, string identity) : base(logger, identity)
 {
     this.component        = processComponent;
     this.component.OnLog += this.OnLog;
 }