public IMediatorBuilder Return <TResult, THandler>(Func <THandler, TRequest, TResult> func) { _direct = new Direct <TRequest, TResult, THandler>(func); return(_mediatorBuilder); }
public IDirect Return <Response, Handler>(Func <Handler, Request, Response> func) { _direct = new Direct <Request, Response, Handler>(func); return(_direct); }
public Pipeline(IMediatorBuilder mediatorBuilder) { _mediatorBuilder = mediatorBuilder; _methods = new MethodCollection <Method <Action <object, object> > > (); _direct = null !; }
public Pipeline(MediatorBuilder pipelinesManager) { _pipelinesManager = pipelinesManager; _methods = new MethodCollection <Method <Action <object, Request>, Request>, Request> (); _direct = null !; }