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