Exemple #1
0
 public AutoMigrationEventLoader(
     IEventLoader eventLoader,
     IEventLoaderMigration eventLoaderMigration)
 {
     _eventLoader = eventLoader;
     _migrated    = new Lazy <Task>(eventLoaderMigration.MigrateAsync);
 }
Exemple #2
0
 public MetricsEventLoader(
     IEventLoader eventLoader,
     IClaptrapDesign claptrapDesign)
 {
     _eventLoader    = eventLoader;
     _claptrapDesign = claptrapDesign;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OnEventCreated"/> class.
 /// </summary>
 /// <param name="loader">The loader.</param>
 /// <param name="notifier">The notifier.</param>
 /// <exception cref="System.ArgumentNullException">
 /// loader
 /// or
 /// notifier
 /// </exception>
 public OnEventCreated(IEventLoader loader, INotifier notifier)
 {
     if (loader == null)
     {
         throw new ArgumentNullException(nameof(loader));
     }
     if (notifier == null)
     {
         throw new ArgumentNullException(nameof(notifier));
     }
     _loader   = loader;
     _notifier = notifier;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduleController" /> class.
        /// </summary>
        /// <exception cref="System.ArgumentNullException">eventLoader
        /// or
        /// eventWriter</exception>
        public ScheduleController(IEventLoader eventLoader, IEventWriter eventWriter)
        {
            if (eventLoader == null)
            {
                throw new ArgumentNullException(nameof(eventLoader));
            }

            if (eventWriter == null)
            {
                throw new ArgumentNullException(nameof(eventWriter));
            }

            _eventLoader = eventLoader;
        }
 public MinionEventHandlerFLow(IStateAccessor stateAccessor,
                               IStateHolder stateHolder,
                               IEventHandlerFactory eventHandlerFactory,
                               IStateRestorer stateRestorer,
                               IStateSavingFlow stateSavingFlow,
                               StateRecoveryOptions stateRecoveryOptions,
                               EventLoadingOptions eventLoadingOptions,
                               IEventLoader eventLoader,
                               ILogger <MinionEventHandlerFLow> logger) : base(stateAccessor,
                                                                               stateHolder,
                                                                               eventHandlerFactory,
                                                                               stateRestorer,
                                                                               stateSavingFlow,
                                                                               stateRecoveryOptions,
                                                                               logger)
 {
     _eventLoadingOptions = eventLoadingOptions;
     _eventLoader         = eventLoader;
 }
Exemple #6
0
 public StateRestorer(
     IClaptrapIdentity claptrapIdentity,
     EventLoadingOptions eventLoadingOptions,
     IStateAccessor stateAccessor,
     IInitialStateDataFactory initialStateDataFactory,
     IStateLoader stateLoader,
     IEventLoader eventLoader,
     IEventHandlerFactory eventHandlerFactory,
     IL l,
     ILogger <StateRestorer> logger)
 {
     _claptrapIdentity        = claptrapIdentity;
     _eventLoadingOptions     = eventLoadingOptions;
     _stateAccessor           = stateAccessor;
     _initialStateDataFactory = initialStateDataFactory;
     _stateLoader             = stateLoader;
     _eventLoader             = eventLoader;
     _eventHandlerFactory     = eventHandlerFactory;
     _l      = l;
     _logger = logger;
 }
 public MyEventLoader(IEventLoader loader) : base(loader)
 {
 }
Exemple #8
0
 protected DecoratedEventLoader(
     IEventLoader loader)
 {
     EventLoader = loader;
 }
Exemple #9
0
 public MetricsEventLoader(
     IEventLoader eventLoader)
 {
     _eventLoader = eventLoader;
 }