public MediatorBuilder Return <Response, Handler>(Func <Handler, Request, CancellationToken, Task <Response> > action) { var sendPipeline = new CancellableAsync <Request, Response, Handler>(action); _direct = sendPipeline; return(_pipelinesManager); }
public CancellablePipeline(IMethodCollection <Method <Func <object, object, CancellationToken, Task> > > methods, ICancellableAsync direct, Type requestType) { _methods = methods; _direct = direct; _requestType = requestType; }
public ICancellablePipeline Return <TResult, THandler>(Func <THandler, TRequest, CancellationToken, Task <TResult> > func) { _direct = new CancellableAsyncDirect <TRequest, TResult, THandler>(func); return(Build()); }
public CancellablePipelineBuilder() { _methods = new MethodCollection <Method <Func <object, object, CancellationToken, Task> > >(); _direct = null !; }
public IMediatorBuilder Return <TResult, THandler>(Func <THandler, TRequest, CancellationToken, Task <TResult> > func) { _direct = new CancellableAsyncDirect <TRequest, TResult, THandler>(func); return(_mediatorBuilder); }
public CancellablePipeline(IMediatorBuilder mediatorBuilder) { _mediatorBuilder = mediatorBuilder; _methods = new MethodCollection <Method <Func <object, object, CancellationToken, Task> > > (); _direct = null !; }
public CancellablePipeline(MediatorBuilder pipelinesManager) { _pipelinesManager = pipelinesManager; _methods = new MethodCollection <Method <Func <object, Request, CancellationToken, Task>, Request>, Request> (); _direct = null !; }