public static IPublishCommands GetCommandPublisher() { var commandPublisher = new LocalCommandPublisher(); var unitOfWork = new InMemoryUnitOfWork(DataStore); commandPublisher.Subscribe(new ClientService(unitOfWork, Logger)); return(commandPublisher); }
public static IPublishCommands GetCommandPublisher() { var commandPublisher = new LocalCommandPublisher(); 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 LocalCommandPublisher(unitOfWork); commandPublisher = new CommandPublisherAuthorizer(commandPublisher, currentUserSession); commandPublisher = new CommandLogger(commandPublisher); commandPublisher = new CommandRetry(commandPublisher); commandPublisher.Subscribe(new ClientService(unitOfWork)); return(commandPublisher); }
private static void SubscribeToCommands() { LocalCommandPublisher = new LocalCommandPublisher(); ((LocalCommandPublisher)LocalCommandPublisher).Subscribe(ClientApplicationService); ((LocalCommandPublisher)LocalCommandPublisher).Subscribe(AccountApplicationService); }