public void ClusteringDefaultSettings_IsNotEmpty() { var config = EventFlyDefaultSettings.DefaultConfig(); var value = config.GetBoolean("EventFly.aggregate-manager.handle-deadletters"); value.Should().BeTrue(); }
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"); }
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"); }
public DomainEventSubscriberSettings(Config config) { var domainEventSubscriberConfig = config.WithFallback(EventFlyDefaultSettings.DefaultConfig()); domainEventSubscriberConfig = domainEventSubscriberConfig.GetConfig(_section); AutoSubscribe = domainEventSubscriberConfig.GetBoolean("auto-subscribe"); AutoReceive = domainEventSubscriberConfig.GetBoolean("auto-receive"); }
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"); }
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"); }
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"); }