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