public RingCommandCacheHandler( ICommandMappingProvider commandMappingProvider , IAggregateRootRebuilder aggregateRootRebuilder , IContextCache contextCache , ILoggerFactory loggerFactory , int maxHandleCount) : base(maxHandleCount) { this._aggregateRootRebuilder = aggregateRootRebuilder; this._contextCache = contextCache; this._logger = loggerFactory.CreateLogger <RingCommandCacheHandler>(); this._commandMappingProvider = commandMappingProvider; }
public RingCommandBusinessHandler( IContextCache contextCache , ICommandHandlerFactory commandHandlerFactory , IEventStore eventStore , IEventBus eventBus , ICommandRegister commandRegister , IAggregateRootRebuilder aggregateRootRebuilder , ILoggerFactory loggerFactory , int maxHandleCount) : base(maxHandleCount) { this.context = new RingCommandContext(contextCache, aggregateRootRebuilder); this._contextCache = contextCache; this._commandHandlerFactory = commandHandlerFactory; this._eventStore = eventStore; this._eventBus = eventBus; this._commandRegister = commandRegister; this._aggregateRootRebuilder = aggregateRootRebuilder; this._logger = loggerFactory.CreateLogger <RingCommandBusinessHandler>(); }
public RingCommandContext(IContextCache contextCache, IAggregateRootRebuilder aggregateRootRebuilder) { this._contextCache = contextCache; this._aggregateRootRebuilder = aggregateRootRebuilder; }