public CommandService( RequestChannelPools requestChannelPools, ICommandTopicProvider commandTopicProvider) { _requestChannelPools = requestChannelPools; _commandTopicProvider = commandTopicProvider; }
public CommandService(CommandResultProcessor commandResultProcessor, ProducerSetting setting, string id) { _commandResultProcessor = commandResultProcessor; _producer = new Producer(setting, id); _binarySerializer = ObjectContainer.Resolve<IBinarySerializer>(); _commandTopicProvider = ObjectContainer.Resolve<ICommandTopicProvider>(); _commandTypeCodeProvider = ObjectContainer.Resolve<ICommandTypeCodeProvider>(); _logger = ObjectContainer.Resolve<ILoggerFactory>().Create(GetType().Name); }