/// <summary> /// Initializes a new instance of the <see cref="CreateScopedStreamProcessors"/> class. /// </summary> /// <param name="eventFetchers">The <see cref="IEventFetchers" />.</param> /// <param name="streamProcessorStates">The <see cref="IResilientStreamProcessorStateRepository" />.</param> /// <param name="executionContextManager">The <see cref="IExecutionContextManager" />.</param> /// <param name="eventsFetcherPolicy">The <see cref="IAsyncPolicyFor{T}" /> <see cref="ICanFetchEventsFromStream" />.</param> /// <param name="loggerManager">The <see cref="ILoggerManager" />.</param> public CreateScopedStreamProcessors( IEventFetchers eventFetchers, IResilientStreamProcessorStateRepository streamProcessorStates, IExecutionContextManager executionContextManager, IAsyncPolicyFor <ICanFetchEventsFromStream> eventsFetcherPolicy, ILoggerManager loggerManager) { _eventFetchers = eventFetchers; _streamProcessorStates = streamProcessorStates; _eventsFetcherPolicy = eventsFetcherPolicy; _loggerManager = loggerManager; _tenant = executionContextManager.Current.Tenant; }
/// <summary> /// Initializes a new instance of the <see cref="CreateScopedStreamProcessors"/> class. /// </summary> /// <param name="eventFetchers">The factory to use to create the partitioned or unpartitioned stream event fetchers.</param> /// <param name="streamProcessorStates">The stream processor states repository to use to get or create the current state of the stream processor.</param> /// <param name="streamWatcher">The stream watcher to use to notify waiters when the stream processor is created..</param> /// <param name="createPartitionedStreamProcessor">The factory to use to create instances of partitioned stream processors.</param> /// <param name="createUnpartitionedStreamProcessor">The factory to use to create instances of unpartitioned stream processors.</param> public CreateScopedStreamProcessors( IEventFetchers eventFetchers, IResilientStreamProcessorStateRepository streamProcessorStates, IStreamEventWatcher streamWatcher, Func <IStreamDefinition, IStreamProcessorId, ICanFetchEventsFromPartitionedStream, IEventProcessor, Partitioned.StreamProcessorState, ExecutionContext, Partitioned.ScopedStreamProcessor> createPartitionedStreamProcessor, Func <IStreamDefinition, IStreamProcessorId, ICanFetchEventsFromStream, IEventProcessor, StreamProcessorState, ExecutionContext, ScopedStreamProcessor> createUnpartitionedStreamProcessor) { _eventFetchers = eventFetchers; _streamProcessorStates = streamProcessorStates; _streamWatcher = streamWatcher; _createPartitionedStreamProcessor = createPartitionedStreamProcessor; _createUnpartitionedStreamProcessor = createUnpartitionedStreamProcessor; }
/// <summary> /// Initializes a new instance of the <see cref="ValidateFilterByComparingStreams"/> class. /// </summary> /// <param name="eventFetchers">The <see cref="IEventFetchers" />.</param> public ValidateFilterByComparingStreams(IEventFetchers eventFetchers) { _eventFetchers = eventFetchers; }
/// <summary> /// Initializes a new instance of the <see cref="ValidateFilterByComparingEventTypes"/> class. /// </summary> /// <param name="eventFetchers">The <see cref="IEventFetchers"/>.</param> public ValidateFilterByComparingEventTypes( IEventFetchers eventFetchers) { _eventFetchers = eventFetchers; }