Example #1
0
 public EventStoreProvider(IEventStoreConnection connection,
                           StreamNameStrategy eventStreamNameStrategy,
                           StreamNameStrategy snapshotStreamNameStrategy)
 {
     _connection = connection;
     _eventStreamNameStrategy    = eventStreamNameStrategy;
     _snapshotStreamNameStrategy = snapshotStreamNameStrategy;
 }
Example #2
0
        public EventStoreProvider(IEventStoreConnection connection)
        {
            _connection = connection;
            _eventStreamNameStrategy    = DefaultStrategy.DefaultEventStreamNameStrategy;
            _snapshotStreamNameStrategy = DefaultStrategy.DefaultSnapshotStreamNameStrategy;

            _stringToType = Type.GetType;
            _typeToString = type => type.AssemblyQualifiedName;
        }