public GenericRequestHandlerController(IDispatchCommand commandDispatcher, IDispatchQuery queryDispatcher, ILogger log) { _commandDispatcher = commandDispatcher; _queryDispatcher = queryDispatcher; _log = log; }
public QueryReceiver(IDispatchQuery queryDispatcher) { _queryDispatcher = queryDispatcher; }
public static ICollection <IRole> GetRoles(this IDispatchQuery dispatch, int pageIndex, int pageSize, string nameFilter = null) { dispatch.VerifyParam("dispatch").IsNotNull(); return(dispatch.Execute(new GetRoles().WithNameLike(nameFilter).Page(pageIndex, pageSize))); }
public static ICollection <IRole> GetAllRoles(this IDispatchQuery dispatch) { dispatch.VerifyParam("dispatch").IsNotNull(); return(dispatch.Execute(new GetAllRoles())); }
public static ICollection <IRole> GetRolesForPlayer(this IDispatchQuery dispatch, IPlayer player) { dispatch.VerifyParam("dispatch").IsNotNull(); return(dispatch.Execute(new GetRolesForPlayer(player))); }
public static IAdvancedAppSetup <T, IDispatchQuery> UseQueryDispatch <T>(this IAppSetup <T> setup, IDispatchQuery dispatch) { dispatch.VerifyParam("dispatch").IsNotNull(); return(new AdvancedAppSetup <T, IDispatchQuery>(setup, dispatch)); }
public QueryDispatchBehavior(ILifetimeScope scope, IDispatchQuery next) { _scope = scope; _next = next; }
public QueryStopwatchBehavior(ILogger log, IDispatchQuery next) { _log = log; _next = next; }