Beispiel #1
0
 public EventStore(EventStoreConfiguration configuration, IEventMigratorManager eventMigratorManager, IEventMigrationHierarchyManager eventMigrationHierarchyManager,
                             ISerializer serializer, IEventParameters eventParameters)
 {
     _eventMigratorManager = eventMigratorManager;
     _eventMigrationHierarchyManager = eventMigrationHierarchyManager;
     _serializer = serializer;
     _eventParameters = eventParameters;
     _connection = (OracleConnection)configuration.GetConnection();
 }
Beispiel #2
0
 public EventStore(EventStoreConfiguration configuration, IEventMigratorManager eventMigratorManager, IEventMigrationHierarchyManager eventMigrationHierarchyManager,
                   ISerializer serializer, IEventParameters eventParameters)
 {
     _eventMigratorManager           = eventMigratorManager;
     _eventMigrationHierarchyManager = eventMigrationHierarchyManager;
     _serializer      = serializer;
     _eventParameters = eventParameters;
     _connection      = (OracleConnection)configuration.GetConnection();
 }
        public static IConfigure UsingOracleEventStore(this IEventsConfiguration eventsConfiguration, Action<EventStoreConfiguration> configureCallback)
        {
            eventsConfiguration.EventStoreType = typeof(EventStore);
            var configuration = new EventStoreConfiguration();
            configureCallback(configuration);

            Configure.Instance.Container.Bind(configuration);
            return Configure.Instance;
        }
        public static IConfigure UsingOracleEventStore(this IEventsConfiguration eventsConfiguration, string connectionString, Action<EventStoreConfiguration> configureCallback = null)
        {
            eventsConfiguration.EventStoreType = typeof(EventStore);
            var configuration = new EventStoreConfiguration
            {
                Connection = new OracleConnection(connectionString)
            };
            if (configureCallback != null)
                configureCallback(configuration);

            Configure.Instance.Container.Bind(configuration);
            return Configure.Instance;
        }