示例#1
0
        public static IPublishCommands GetCommandPublisher()
        {
            var commandPublisher = new CommandPublisher();

            commandPublisher.Subscribe(new CommandHandlerProxy<RegisterClient>());
            commandPublisher.Subscribe(new CommandHandlerProxy<UpdateClientAddress>());

            return commandPublisher;
        }
示例#2
0
        public static IPublishCommands GetCommandPublisher()
        {
            var commandPublisher = new CommandPublisher();
            var unitOfWork = new EntityFrameworkUnitOfWork(ContextFactory);

            commandPublisher.Subscribe(new ClientService(unitOfWork, Logger));

            return commandPublisher;
        }
示例#3
0
        public static IPublishCommands GetCommandPublisher()
        {
            var unitOfWork = new EntityFrameworkUnitOfWork(ContextFactory);

            IPublishCommands commandPublisher = new CommandPublisher(unitOfWork, currentUserSession);

            commandPublisher.Subscribe(new ClientService(unitOfWork));

            return(commandPublisher);
        }