Example #1
0
 public CustomerCommandController(
     ICommandBroker commandBroker,
     IMapper mapper)
 {
     _commandBroker = commandBroker;
     _mapper        = mapper;
 }
Example #2
0
 public CommandMessagePump(MessagingFactory messagingFactory, ICommandBroker commandBroker, Type messageType, ILogger logger)
     : base(logger)
 {
     _messagingFactory = messagingFactory;
     _commandBroker = commandBroker;
     _messageType = messageType;
 }
Example #3
0
 public ServerContext(ICommandRegistry registry = null, 
     ICommandBroker broker = null,
     ICommandStateProvider stateProvider = null)
 {
     _registry = registry ?? Implementations.CommandRegistry;
     _broker = broker ?? Implementations.Broker;
     _stateProvider = stateProvider ?? Implementations.StateProvider;
 }
 public static BusBuilderConfiguration WithCommandBroker(this BusBuilderConfiguration configuration, ICommandBroker commandBroker)
 {
     configuration.CommandBroker = commandBroker;
     return configuration;
 }
Example #5
0
 public GameHub(ICommandBroker commandBroker)
 {
     _commandBroker = commandBroker;
 }