Table of Contents

Interface IMongoDbServiceFactory

Namespace
Tharga.MongoDB
Assembly
Tharga.MongoDB.dll
public interface IMongoDbServiceFactory
Extension Methods

Properties

AllowDelayedCommit

Resolved value of DatabaseOptions.AllowDelayedCommit. Surfaced on the factory so LockableRepositoryCollectionBase<TEntity, TKey> can read it as the default for its virtual AllowDelayedCommit property without taking a direct dependency on IOptions<DatabaseOptions>.

bool AllowDelayedCommit { get; }

Property Value

bool

SourceName

string SourceName { get; }

Property Value

string

Methods

GetMongoDbService(Func<DatabaseContext>)

IMongoDbService GetMongoDbService(Func<DatabaseContext> databaseContextLoader)

Parameters

databaseContextLoader Func<DatabaseContext>

Returns

IMongoDbService

Events

CallEndEvent

event EventHandler<CallEndEventArgs> CallEndEvent

Event Type

EventHandler<CallEndEventArgs>

CallStartEvent

event EventHandler<CallStartEventArgs> CallStartEvent

Event Type

EventHandler<CallStartEventArgs>

CollectionAccessEvent

event EventHandler<CollectionAccessEventArgs> CollectionAccessEvent

Event Type

EventHandler<CollectionAccessEventArgs>

CollectionDroppedEvent

event EventHandler<CollectionDroppedEventArgs> CollectionDroppedEvent

Event Type

EventHandler<CollectionDroppedEventArgs>

IndexUpdatedEvent

event EventHandler<IndexUpdatedEventArgs> IndexUpdatedEvent

Event Type

EventHandler<IndexUpdatedEventArgs>