/// <summary> /// Initializes a new instance of the <see cref="CommittedEventsFetcher"/> class. /// </summary> /// <param name="streams">The <see cref="IStreams"/>.</param> /// <param name="eventConverter">The <see cref="IEventConverter" />.</param> /// <param name="aggregateRoots">The <see cref="IAggregateRoots" />.</param> public CommittedEventsFetcher( IStreams streams, IEventConverter eventConverter, IAggregateRoots aggregateRoots) { _streams = streams; _eventConverter = eventConverter; _aggregateRoots = aggregateRoots; }
/// <summary> /// Initializes a new instance of the <see cref="GetTenantScopedAggregateRoot"/> class. /// </summary> /// <param name="aggregateRoots">The <see cref="IAggregateRoots"/>.</param> /// <param name="forAllTenants">The performer to use to fetch aggregate root instances for all tenants.</param> /// <param name="getAggregateRootInstancesFor">The factory to use to get <see cref="IAggregateRootInstances"/> for each tenant./></param> public GetTenantScopedAggregateRoot( IAggregateRoots aggregateRoots, IPerformActionsForAllTenants forAllTenants, Func <TenantId, IAggregateRootInstances> getAggregateRootInstancesFor) // TODO: Instead of this "perform for all tenants" + "func<TenantId, something>" pattern, we should really make a thing to to this with types { _getAggregateRootInstancesFor = getAggregateRootInstancesFor; _aggregateRoots = aggregateRoots; _forAllTenants = forAllTenants; }
/// <summary> /// Initializes a new instance of the <see cref="EventStore"/> class. /// </summary> /// <param name="executionContextManager">The <see cref="IExecutionContextManager" />.</param> /// <param name="streams">The <see cref="IStreams"/>.</param> /// <param name="eventCommitter">The <see cref="IEventCommitter" />.</param> /// <param name="aggregateRoots">The <see cref="IAggregateRoots" />.</param> /// <param name="logger">An <see cref="ILogger"/>.</param> public EventStore( IExecutionContextManager executionContextManager, IStreams streams, IEventCommitter eventCommitter, IAggregateRoots aggregateRoots, ILogger logger) { _executionContextManager = executionContextManager; _streams = streams; _eventCommitter = eventCommitter; _aggregateRoots = aggregateRoots; _logger = logger; }
public AggregateRootsService(IAggregateRoots aggregateRoots) { _aggregateRoots = aggregateRoots; }
/// <summary> /// Initializes a new instance of the <see cref="AggregateRootInstances"/> class. /// </summary> /// <param name="aggregateRoots">The Aggregate Roots.</param> /// <param name="instances">The system that can fetch Aggregate Root Instances.</param> public AggregateRootInstances(IAggregateRoots aggregateRoots, IFetchAggregateRootInstances instances) { _aggregateRoots = aggregateRoots; _instances = instances; }
/// <summary> /// Initializes a new instance of the <see cref="UpdateAggregateVersionsAfterCommit"/> class. /// </summary> /// <param name="aggregateRoots"></param> public UpdateAggregateVersionsAfterCommit(IAggregateRoots aggregateRoots) { _aggregateRoots = aggregateRoots; }