public AccountManagementEventStoreGeneratedQueryModelsReader( ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor, IEnumerable <IAccountManagementQueryModelGenerator> documentGenerators) : base(usageGuard, interceptor, documentGenerators) { }
public EventStoreSession(IServiceBus bus, IEventStore store, ISingleContextUseGuard usageGuard, IUtcTimeTimeSource timeSource) { Contract.Requires(bus != null); Contract.Requires(store != null); Contract.Requires(usageGuard != null); Contract.Requires(timeSource != null); _usageGuard = usageGuard; _bus = bus; _store = store; TimeSource = timeSource ?? DateTimeNowTimeSource.Instance; }
public SqlServerEventStore(string connectionString, ISingleContextUseGuard usageGuard, IEventNameMapper nameMapper = null, IEnumerable<IEventMigration> migrations = null) { Log.Debug("Constructor called"); _migrationFactories = migrations?.ToList() ?? new List<IEventMigration>(); nameMapper = nameMapper ?? new DefaultEventNameMapper(); ConnectionString = connectionString; _usageGuard = usageGuard; var eventSerializer = new SqlServerEvestStoreEventSerializer(); _cache = SqlServerEventStoreEventsCache.ForConnectionString(connectionString); _connectionMananger = new SqlServerEventStoreConnectionManager(connectionString); _schemaManager = new SqlServerEventStoreSchemaManager(connectionString, nameMapper); _eventReader = new SqlServerEventStoreEventReader(_connectionMananger, _schemaManager); _eventWriter = new SqlServerEventStoreEventWriter(_connectionMananger, eventSerializer, _schemaManager); }
public SqlServerEventStore(string connectionString, ISingleContextUseGuard usageGuard, IEventNameMapper nameMapper = null, IEnumerable <IEventMigration> migrations = null) { Log.Debug("Constructor called"); _migrationFactories = migrations?.ToList() ?? new List <IEventMigration>(); nameMapper = nameMapper ?? new DefaultEventNameMapper(); ConnectionString = connectionString; _usageGuard = usageGuard; var eventSerializer = new SqlServerEvestStoreEventSerializer(); _cache = SqlServerEventStoreEventsCache.ForConnectionString(connectionString); _connectionMananger = new SqlServerEventStoreConnectionManager(connectionString); _schemaManager = new SqlServerEventStoreSchemaManager(connectionString, nameMapper); _eventReader = new SqlServerEventStoreEventReader(_connectionMananger, _schemaManager); _eventWriter = new SqlServerEventStoreEventWriter(_connectionMananger, eventSerializer, _schemaManager); }
public UnitOfWork(ISingleContextUseGuard usageGuard) { _usageGuard = usageGuard; Id = Guid.NewGuid(); Log.DebugFormat("Constructed {0}", Id); }
public AccountManagementQueryModelUpdaterSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor) : base(backingStore, usageGuard, interceptor) { }
public AccountManagementEventStoreSession(IServiceBus bus, IEventStore store, ISingleContextUseGuard usageGuard) : base(bus, store, usageGuard) {}
public AccountManagementEventStoreSession(IServiceBus bus, IEventStore store, ISingleContextUseGuard usageGuard, IUtcTimeTimeSource timeSource) : base(bus, store, usageGuard, timeSource) { }
public AccountManagementDomainQueryModelSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor) : base(backingStore, usageGuard, interceptor) {}
public AccountManagementEventStoreSession(IServiceBus bus, IEventStore store, ISingleContextUseGuard usageGuard, IUtcTimeTimeSource timeSource) : base(bus, store, usageGuard, timeSource) {}
public DualDispatchBus(SynchronousBus local, NServiceBusServiceBus realBus, ISingleContextUseGuard usageGuard) { _usageGuard = usageGuard; _local = local; _realBus = realBus; }
//Review:mlidbo: Always requiring an interceptor causes a lot of unneeded complexity for clients. Consider creating a virtual void OnFirstLoad(T document) method instead. This would allow for inheriting this class to create "interceptable" sessions. Alternatively maybe an observable/event could be used somehow. public DocumentDbSession(IDocumentDb backingStore, ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor) { UsageGuard = usageGuard; BackingStore = backingStore; Interceptor = interceptor; }
public AccountManagementEventStoreGeneratedQueryModelsReader( ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor, IEnumerable<IAccountManagementQueryModelGenerator> documentGenerators) : base(usageGuard, interceptor, documentGenerators) {}
protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null) { return new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance); }
//Review:mlidbo: Always requiring an interceptor causes a lot of unneeded complexity for clients. Consider creating a virtual void OnFirstLoad(T document) method instead. This would allow for inheriting this class to create "interceptable" sessions. Alternatively maybe an observable/event could be used somehow. public QueryModelGeneratingDocumentDbReader(ISingleContextUseGuard usageGuard, IDocumentDbSessionInterceptor interceptor, IEnumerable <IQueryModelGenerator> documentGenerators) { _usageGuard = usageGuard; _interceptor = interceptor; _documentGenerators = documentGenerators; }
protected static IDocumentDbSession OpenSession(IDocumentDb store, ISingleContextUseGuard guard = null) { return(new DocumentDbSession(store, guard ?? new SingleThreadUseGuard(), NullOpDocumentDbSessionInterceptor.Instance)); }