public DocumentSession(StoreOptions options, IDocumentSchema schema, ISerializer serializer, IManagedConnection connection, IQueryParser parser, IIdentityMap identityMap) : base(schema, serializer, connection, parser, identityMap) { _options = options; _schema = schema; _serializer = serializer; _connection = connection; _identityMap = identityMap; _unitOfWork = new UnitOfWork(_schema); if (_identityMap is IDocumentTracker) { _unitOfWork.AddTracker(_identityMap.As <IDocumentTracker>()); } }
public DocumentSession(StoreOptions options, IDocumentSchema schema, ISerializer serializer, ICommandRunner runner, IQueryParser parser, IIdentityMap identityMap) : base(schema, serializer, runner, parser, identityMap) { _options = options; _schema = schema; _serializer = serializer; _runner = runner; _identityMap = identityMap; _unitOfWork = new UnitOfWork(_schema); if (_identityMap is IDocumentTracker) { _unitOfWork.AddTracker(_identityMap.As <IDocumentTracker>()); } }
public DocumentSession(DocumentStore store, IManagedConnection connection, IQueryParser parser, IIdentityMap identityMap, ITenant tenant, IList <IDocumentSessionListener> localListeners) : base(store, connection, parser, identityMap, tenant) { _connection = connection; _sessionListeners = _store.Options.Listeners.Concat(localListeners).ToList(); IdentityMap = identityMap; _unitOfWork = new UnitOfWork(_store, tenant); if (IdentityMap is IDocumentTracker) { _unitOfWork.AddTracker(IdentityMap.As <IDocumentTracker>()); } Events = new EventStore(this, _store, _connection, _unitOfWork, tenant); }
public DocumentSession(IDocumentStore store, StoreOptions options, IDocumentSchema schema, ISerializer serializer, IManagedConnection connection, IQueryParser parser, IIdentityMap identityMap) : base(store, schema, serializer, connection, parser, identityMap, options) { _options = options; _schema = schema; _serializer = serializer; _connection = connection; IdentityMap = identityMap; _unitOfWork = new UnitOfWork(_schema); if (IdentityMap is IDocumentTracker) { _unitOfWork.AddTracker(IdentityMap.As <IDocumentTracker>()); } Events = new EventStore(this, schema, _serializer, _connection, _unitOfWork); }
public DocumentSession(IDocumentStore store, StoreOptions options, IDocumentSchema schema, ISerializer serializer, IManagedConnection connection, IQueryParser parser, IIdentityMap identityMap, CharArrayTextWriter.Pool writerPool, IList <IDocumentSessionListener> localListeners) : base(store, schema, serializer, connection, parser, identityMap, writerPool) { _options = options; _schema = schema; _serializer = serializer; _connection = connection; _sessionListeners = _options.Listeners.Concat(localListeners).ToList(); IdentityMap = identityMap; _unitOfWork = new UnitOfWork(_schema); if (IdentityMap is IDocumentTracker) { _unitOfWork.AddTracker(IdentityMap.As <IDocumentTracker>()); } Events = new EventStore(this, schema, _serializer, _connection, _unitOfWork); }