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