public CommandDispatcher(Func <RequestDispatcherContext, bool> command)
 {
     _command = context => command(RequestDispatcherContext.FromDashboardContext(context));
 }
 public BatchCommandDispatcher(Action <RequestDispatcherContext, string> command)
 {
     _command = (context, jobId) => command(RequestDispatcherContext.FromDashboardContext(context), jobId);
 }
Beispiel #3
0
 public Task Dispatch(DashboardContext context)
 {
     return(_dispatcher.Dispatch(RequestDispatcherContext.FromDashboardContext(context)));
 }