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