Ejemplo n.º 1
0
        public void ClusteringDefaultSettings_IsNotEmpty()
        {
            var config = EventFlyDefaultSettings.DefaultConfig();

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

            value.Should().BeTrue();
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }