示例#1
0
        public void ClusteringDefaultSettings_IsNotEmpty()
        {
            var config = EventFlyDefaultSettings.DefaultConfig();

            var value = config.GetBoolean("EventFly.aggregate-manager.handle-deadletters");

            value.Should().BeTrue();
        }
示例#2
0
        public DomainServiceSettings(Config config)
        {
            var domainServiceConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            domainServiceConfig = domainServiceConfig.GetConfig(_section);

            AutoReceive = domainServiceConfig.GetBoolean("auto-receive");
        }
        public DomainServiceManagerSettings(Config config)
        {
            var domainServiceManagerConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            domainServiceManagerConfig = domainServiceManagerConfig.GetConfig(_section);

            AutoSpawnOnReceive = domainServiceManagerConfig.GetBoolean("auto-spawn-on-receive");
            AutoSubscribe      = domainServiceManagerConfig.GetBoolean("auto-subscribe");
        }
示例#4
0
        public AggregateManagerSettings(Config config)
        {
            var aggregateManagerConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            aggregateManagerConfig = aggregateManagerConfig.GetConfig(_section);

            HandleDeadLetters     = aggregateManagerConfig.GetBoolean("handle-deadletters");
            AutoDispatchOnReceive = aggregateManagerConfig.GetBoolean("auto-dispatch-on-receive");
        }
        public AggregateSagaManagerSettings(Config config)
        {
            var aggregateSagaManagerConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            aggregateSagaManagerConfig = aggregateSagaManagerConfig.GetConfig(_section);

            AutoSpawnOnReceive = aggregateSagaManagerConfig.GetBoolean("auto-spawn-on-receive");
            AutoSubscribe      = aggregateSagaManagerConfig.GetBoolean("auto-subscribe");
        }
示例#6
0
        public DomainEventSubscriberSettings(Config config)
        {
            var domainEventSubscriberConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            domainEventSubscriberConfig = domainEventSubscriberConfig.GetConfig(_section);

            AutoSubscribe = domainEventSubscriberConfig.GetBoolean("auto-subscribe");
            AutoReceive   = domainEventSubscriberConfig.GetBoolean("auto-receive");
        }
示例#7
0
        public AggregateRootSettings(Config config)
        {
            var aggregateRootConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            aggregateRootConfig = aggregateRootConfig.GetConfig(_section);

            UseDefaultEventRecover    = aggregateRootConfig.GetBoolean("use-default-event-recover");
            UseDefaultSnapshotRecover = aggregateRootConfig.GetBoolean("use-default-snapshot-recover");
            SetReceiveTimeout         = aggregateRootConfig.GetTimeSpan("set-receive-timeout");
        }
示例#8
0
        public AggregateSagaSettings(Config config)
        {
            var aggregateSagaConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            aggregateSagaConfig = aggregateSagaConfig.GetConfig(_section);

            AutoReceive               = aggregateSagaConfig.GetBoolean("auto-receive");
            UseDefaultEventRecover    = aggregateSagaConfig.GetBoolean("use-default-event-recover");
            UseDefaultSnapshotRecover = aggregateSagaConfig.GetBoolean("use-default-snapshot-recover");
        }
示例#9
0
        public JobSchedulerSettings(Config config)
        {
            var schedulerConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig());

            schedulerConfig = schedulerConfig.GetConfig(_section);

            JournalPluginId  = schedulerConfig.GetString("journal-plugin-id");
            SnapshotPluginId = schedulerConfig.GetString("snapshot-plugin-id");
            TickInterval     = schedulerConfig.GetTimeSpan("tick-interval");
        }