public static FrameworkConfigurator UseSnapshotOnEventCountStrategy(this FrameworkConfigurator configurator, int eventCount = 50) { configurator.AddConfigurationValue(SnapshotOnEventCountStrategy.ConfigurationKey, eventCount); configurator.RegisterSingelton <ISnapshotStrategy, SnapshotOnEventCountStrategy>(); return(configurator); }
private static FrameworkConfigurator UseProvider(this FrameworkConfigurator configurator, string connectionString, ProviderType providerType) { configurator.AddConfigurationValue(DataStoreConnectionFactory.EFCoreConnectionStringKey, connectionString); configurator.AddConfigurationValue(DataStoreConnectionFactory.ProviderTypeKey, providerType); return(RegisterMigrationAction(configurator)); }