Esempio n. 1
0
        public EventsourcedScheduler(Config config = null)
        {
            this._settings = config == null?EventsourcedSchedulerSettings.Get(Context.System) : EventsourcedSchedulerSettings.From(config);

            this._snapshotStrategy        = FactoryUtils.Create <ISnapshotStrategy>(this._settings.SnapshotStrategyType, this.Self.AsFactoryParameter(), config.AsFactoryParameter(), Context.System.AsFactoryParameter(), this._settings.AsFactoryParameter());
            this._acknowledgementStrategy = FactoryUtils.Create <IAcknowledgementStrategy>(this._settings.AcknowledgementStrategyType, this.Self.AsFactoryParameter(), config.AsFactoryParameter(), Context.System.AsFactoryParameter(), this._settings.AsFactoryParameter());
        }