public static IPublishCommands GetCommandPublisher() { var commandPublisher = new CommandPublisher(); commandPublisher.Subscribe(new CommandHandlerProxy<RegisterClient>()); commandPublisher.Subscribe(new CommandHandlerProxy<UpdateClientAddress>()); return commandPublisher; }
public static IPublishCommands GetCommandPublisher() { var commandPublisher = new CommandPublisher(); var unitOfWork = new EntityFrameworkUnitOfWork(ContextFactory); commandPublisher.Subscribe(new ClientService(unitOfWork, Logger)); return commandPublisher; }
public static IPublishCommands GetCommandPublisher() { var unitOfWork = new EntityFrameworkUnitOfWork(ContextFactory); IPublishCommands commandPublisher = new CommandPublisher(unitOfWork, currentUserSession); commandPublisher.Subscribe(new ClientService(unitOfWork)); return(commandPublisher); }