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