Ejemplo n.º 1
0
 bool CanBeExecuted(ContributorCall call)
 {
     if (call.Action == null)
     {
         PipelineLog.WriteWarning("Contributor call for {0} had a null Action.", call.ContributorTypeName);
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
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);
        }