public NHibernateSnapshotStore( ISessionFactory sessionFactory, ISerializer serializer, ITypeNameMappingProvider typeNameMappingProvider, ISnapshotTypeProvider snapshotTypeProvider, ILoggerFactory loggerFactory) { _serializer = serializer; _typeNameMappingProvider = typeNameMappingProvider; _snapshotTypeProvider = snapshotTypeProvider; _sessionFactory = sessionFactory; _logger = loggerFactory.Create("EventSourcing.NHibernateSnapshotStore"); }
public DefaultSnapshotStore( IDbConnectionFactory connectionFactory, ISerializer serializer, ITypeNameMappingProvider typeNameMappingProvider, ISnapshotTypeProvider snapshotTypeProvider, ILoggerFactory loggerFactory) { _serializer = serializer; _typeNameMappingProvider = typeNameMappingProvider; _snapshotTypeProvider = snapshotTypeProvider; _connectionFactory = connectionFactory; _logger = loggerFactory.Create("EventSourcing.DefaultSnapshotStore"); }
/// <summary> /// 构造函数 /// </summary> public NHibernateSnapshotStoreBase( INHibernateSessionManager sessionManager, IJsonSerializer snapshotSerializer, ITypeNameMapper typeNameMapper, ISnapshotTypeProvider snapshotTypeProvider, ILoggerFactory loggerFactory) { _sessionManager = sessionManager; _snapshotSerializer = snapshotSerializer; _typeNameMapper = typeNameMapper; _snapshotTypeProvider = snapshotTypeProvider; _logger = loggerFactory.Create("EventSourcing.NHibernateSnapshotStoreBase"); }
public DefaultTypeNameMappingProvider(IEventTypeProvider eventTypeProvider, ISnapshotTypeProvider snapshotTypeProvider) { _eventTypeProvider = eventTypeProvider; _snapshotTypeProvider = snapshotTypeProvider; _mappings = new Dictionary<NameTypeMappingType, IDictionary<string, Type>>(); }
public DefaultTypeNameMappingProvider(IEventTypeProvider eventTypeProvider, ISnapshotTypeProvider snapshotTypeProvider) { _eventTypeProvider = eventTypeProvider; _snapshotTypeProvider = snapshotTypeProvider; _mappings = new Dictionary <NameTypeMappingType, IDictionary <string, Type> >(); }