/// <summary> /// Initializes a new instance of the <see cref="EventStoreContextManager" /> class. /// </summary> /// <param name="eventStoreContextFunc">The event store context function.</param> /// <param name="connectionStringConfigurationRepository">The connection string configuration repository.</param> public EventStoreContextManager(Func <String, IEventStoreContext> eventStoreContextFunc, IConnectionStringConfigurationRepository connectionStringConfigurationRepository) { this.EventStoreContexts = new Dictionary <String, IEventStoreContext>(); this.EventStoreContextFunc = eventStoreContextFunc; this.ConnectionStringConfigurationRepository = connectionStringConfigurationRepository; }
/// <summary> /// Initializes a new instance of the <see cref="DbContextFactory{T}" /> class. /// </summary> /// <param name="connectionStringConfigurationRepository">The connection string configuration repository.</param> /// <param name="createContext">The create context.</param> public DbContextFactory(IConnectionStringConfigurationRepository connectionStringConfigurationRepository, Func <String, T> createContext) { this.ConnectionStringConfigurationRepository = connectionStringConfigurationRepository; this.CreateContext = createContext; }