public CommandCoordinator(IResolveHandler resolveHandler, IEventPublisher eventPublisher, ICommandValidator validation, IPermissionValidator permissionValidator, IMapper mapper, IMetrics metrics, ILogger logger) { _resolveHandler = resolveHandler.NotNull(); _eventPublisher = eventPublisher.NotNull(); _validation = validation.NotNull(); _permissionValidator = permissionValidator.NotNull(); _mapper = _mapper.NotNull(); _metrics = metrics.NotNull(); _logger = logger.NotNull(); }
/// <summary> /// Constructor /// </summary> /// <param name="entities">The db context</param> /// <param name="store">The event store</param> /// <param name="publisher">The event publisher</param> public Session( DbContext entities, IEventStore store, IEventPublisher publisher) { entities.NotNull(nameof(entities)); store.NotNull(nameof(store)); publisher.NotNull(nameof(publisher)); _entities = entities; _store = store; _publisher = publisher; }