Ejemplo n.º 1
0
        public WorkFlow(CancellationTokenSource cancellationTokenSource)
        {
            this.cancelTokenSource = cancellationTokenSource ?? new CancellationTokenSource();

            Pipe       = new WorkFlowPipe <TMessageType>(this);
            Workers    = new List <IWorker <TMessageType> >();
            Exceptions = new List <Exception>();
        }
Ejemplo n.º 2
0
 public WorkFlow()
 {
     Pipe       = new WorkFlowPipe <TMessageType>(this);
     Workers    = new List <IWorker <TMessageType> >();
     Exceptions = new List <Exception>();
 }