Esempio n. 1
0
 public SessionScopedContextFactory(
     ISessionManager sessionManager,
     IFrameworkConfiguration configuration)
 {
     _sessionManager   = sessionManager;
     _providerType     = configuration.GetValue <ProviderType>(ProviderTypeKey);
     _connectionString = configuration.GetValue <string>(EFCoreConnectionStringKey);
 }
Esempio n. 2
0
 public DataStoreConnectionFactory(
     IFrameworkConfiguration configuration,
     ISessionManager sessionManager)
 {
     _providerType     = configuration.GetValue <ProviderType>(ProviderTypeKey);
     _connectionString = configuration.GetValue <string>(EFCoreConnectionStringKey);
     _sessionManager   = sessionManager;
 }
Esempio n. 3
0
 public SnapshotOnEventCountStrategy(IFrameworkConfiguration frameworkConfiguration, ISnapshotStore snapshotStore)
 {
     _eventsBeforeSnapshot = frameworkConfiguration.GetValue <int>(ConfigurationKey);
     _snapshotStore        = snapshotStore;
 }