public DefaultProcessingCommandHandler(
     ICommandStore commandStore,
     IEventStore eventStore,
     ICommandHandlerProvider commandHandlerProvider,
     ICommandAsyncHandlerProvider commandAsyncHandlerProvider,
     ITypeCodeProvider aggregateRootTypeProvider,
     IEventService eventService,
     IMessagePublisher <IApplicationMessage> messagePublisher,
     IMessagePublisher <IPublishableException> exceptionPublisher,
     IMemoryCache memoryCache,
     IOHelper ioHelper,
     ILoggerFactory loggerFactory)
 {
     _commandStore                = commandStore;
     _eventStore                  = eventStore;
     _commandHandlerProvider      = commandHandlerProvider;
     _commandAsyncHandlerProvider = commandAsyncHandlerProvider;
     _aggregateRootTypeProvider   = aggregateRootTypeProvider;
     _eventService                = eventService;
     _messagePublisher            = messagePublisher;
     _exceptionPublisher          = exceptionPublisher;
     _memoryCache                 = memoryCache;
     _ioHelper = ioHelper;
     _logger   = loggerFactory.Create(GetType().FullName);
     _eventService.SetProcessingCommandHandler(this);
 }
 public DefaultProcessingCommandHandler(
     IJsonSerializer jsonSerializer,
     IEventStore eventStore,
     IMemoryCache memoryCache,
     ICommandHandlerProvider commandHandlerProvider,
     ICommandAsyncHandlerProvider commandAsyncHandlerProvider,
     ITypeNameProvider typeNameProvider,
     IEventCommittingService eventService,
     IMessagePublisher <IApplicationMessage> applicationMessagePublisher,
     IMessagePublisher <IPublishableException> exceptionPublisher,
     IOHelper ioHelper,
     ILoggerFactory loggerFactory,
     ITimeProvider timeProvider)
 {
     _jsonSerializer              = jsonSerializer;
     _eventStore                  = eventStore;
     _memoryCache                 = memoryCache;
     _commandHandlerProvider      = commandHandlerProvider;
     _commandAsyncHandlerProvider = commandAsyncHandlerProvider;
     _typeNameProvider            = typeNameProvider;
     _eventService                = eventService;
     _applicationMessagePublisher = applicationMessagePublisher;
     _exceptionPublisher          = exceptionPublisher;
     _ioHelper     = ioHelper;
     _logger       = loggerFactory.Create(GetType().FullName);
     _timeProvider = timeProvider;
 }