public WorkFlow(CancellationTokenSource cancellationTokenSource) { this.cancelTokenSource = cancellationTokenSource ?? new CancellationTokenSource(); Pipe = new WorkFlowPipe <TMessageType>(this); Workers = new List <IWorker <TMessageType> >(); Exceptions = new List <Exception>(); }
public WorkFlow() { Pipe = new WorkFlowPipe <TMessageType>(this); Workers = new List <IWorker <TMessageType> >(); Exceptions = new List <Exception>(); }