public static IQueryProcessor GetQueryProcessor() { var processor = new QueryProcessor(); processor.Subscribe(new QueryHandlerProxy<FetchAllClients, ClientDto[]>()); return processor; }
public static QueryProcessor GetQueryHandlers() { QueryProcessor handler = new QueryProcessor(); handler.Subscribe(new GetOrderByIdQueryHandler(ContextFactory.GetContext().Set<Client>())); return handler; }