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); }
public Task Dispatch(DashboardContext context) { return(_dispatcher.Dispatch(RequestDispatcherContext.FromDashboardContext(context))); }