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; }
public CommandPublisherProxy(ICurrentUserSession currentUser) { this.currentUser = currentUser; commandPublisher = new LocalCommandPublisher(); }