Inheritance: IPipelineExecutionOrder, IPipelineExecutionOrderAnd
    public IPipelineExecutionOrder Use(Func<ICommunicationContext, Task<PipelineContinuation>> action)
    {

      var notification = new Notification(action, Contributors);
      ContributorRegistrations.Add(notification);
      return notification;
    }
 public IPipelineExecutionOrder Notify(Func<ICommunicationContext, Task> action)
 {
   var notification = new Notification(
     async env =>
     {
       await action(env); return PipelineContinuation.Continue;
     }, Contributors);
   ContributorRegistrations.Add(notification);
   return notification;
 }
Example #3
0
        public IPipelineExecutionOrder Notify(Func<ICommunicationContext, PipelineContinuation> action)
        {
            if (IsInitialized)
            {
                PipelineLog.WriteWarning("A pipeline registration through Notify() has been done after the pipeline was initialized. Ignoring.");
                return new Notification(this,action);
            }
            var notification = new Notification(this, action);
            _notificationRegistrations.Add(notification);

            return notification;
        }
 public IPipelineExecutionOrder Notify(Func<ICommunicationContext, PipelineContinuation> method)
 {
   var notification = new Notification(_=>Task.FromResult(method(_)), Contributors);
   ContributorRegistrations.Add(notification);
   return notification;
 }