Table of Contents

Namespace Tharga.MongoDB

Classes

ActionEventArgs
ActionEventArgs.ActionData
ActionEventArgs.ContextData
CallDto

Serialization-friendly representation of a database call.

CallEndEventArgs
CallInfo
CallStartEventArgs
CallStepDto

Serialization-friendly representation of a call execution step.

CallStepInfo
CallSummaryDto

Summary of calls grouped by collection and function.

CleanInfo
CollectionAccessEventArgs
CollectionDroppedEventArgs
CollectionFingerprint
CollectionInfo
CollectionInfoChangedEventArgs
CollectionInfoExtensions
CollectionMeta
CollectionScope<TEntity>
CollectionStats
CollectionType
ConnectionPoolStateDto

Aggregate connection pool state.

DatabaseContext
DatabaseInfo
DocumentDto

Single MongoDB document returned by GetDocumentAsync(CollectionInfo, string, CancellationToken). Json is MongoDB Extended JSON — the raw shape stored in MongoDB, not a C# serializer round-trip.

DocumentListDto

Result of ListDocumentsAsync(CollectionInfo, DocumentListQuery, CancellationToken).

DocumentListQuery

Input for ListDocumentsAsync(CollectionInfo, DocumentListQuery, CancellationToken).

EntityBase
EntityBase<TKey>
EntityChangeResult<TEntity>
ErrorSummaryDto

Summary of errors grouped by exception type and collection.

ExecuteLimiterOptions
ExpressionExtensions
FlexibleGuidAttribute

Overrides the global GuidStorageFormat for a single property. The serializer will still read all three formats (Standard, CSharpLegacy, String), but will write using the specified format.

FlexibleGuidSerializer

A Guid serializer that can read all three storage formats (Standard, CSharpLegacy, String) and writes in the configured format (default: Standard).

IndexAssureProgress

Progress event raised by RestoreAllIndicesAsync(Func<CollectionInfo, bool>, IProgress<IndexAssureProgress>, CancellationToken) as each collection is processed. One event per collection — used by the Blazor toolbar to show a notification per step and by the MCP tool to stream progress.

IndexAssureSummary

Final summary returned by RestoreAllIndicesAsync(Func<CollectionInfo, bool>, IProgress<IndexAssureProgress>, CancellationToken). Counts mirror the per-collection outcomes reported via IndexAssureProgress.

IndexFailure

A recorded failure to drop or create a specific index on a collection within the current process. Surfaced via IDiskRepositoryCollection<TEntity>.GetFailedIndices() so consumers can build admin UIs without writing collection-specific auditors. Scope is in-process; cross-process persistence is a planned follow-up.

IndexInfo
IndexMeta
IndexUpdatedEventArgs
MongoDbRegistrationExtensions
MongoDbServiceFactoryTransactionExtensions

Transaction extensions on IMongoDbServiceFactory. Opens a client session on the configured cluster, runs body inside a transaction, commits on success and aborts on exception.

MongoDbTrackingExtensions

Extension methods for tracking external collections in the database monitor. Use this when a package registers its own collection types via DI but needs them to appear in the monitor as "in code" rather than "NotInCode".

MonitorClientDetail

Snapshot of what a remote monitoring agent has contributed to the aggregator: identity, collections it has reported, its recent calls, and its latest queue state. Returned by GetMonitorClientDetail(string, int) for the per-agent detail dialog in Tharga.MongoDB.Blazor's ClientsView.

MonitorClientDto

Serialization-friendly representation of a connected monitoring agent.

OneOption<TEntity>
Options<TEntity>
PersistableEntityBase
QueueMetricDto

Serialization-friendly queue metric.

QueueMetricEventArgs
RemoteCollectionInfoDto

Serialization-friendly representation of collection metadata from a remote agent.

RepositoryCollectionBase
RepositoryCollectionBase<TEntity, TKey>
ResultLimitException
ResultPage<TEntity, TKey>
Result<TEntity>
Result<TEntity, TKey>
SchemaComparisonDto

Result of CompareSchemaAsync(CollectionInfo, int, CancellationToken): a three-way diff between the C# entity type's public properties, the registered collection type, and the field set observed across sampled documents.

SchemaComparisonField
SlowCallWithIndexInfoDto

Slow call that may lack index coverage.

TrackedCollectionEntry

Marker registered in DI by TrackMongoCollection(IServiceCollection, Type, Type) so that UseMongoDB can discover externally tracked collections.

Interfaces

ICollectionProvider
ICollectionProviderCache
ICollectionTypeService
IDatabaseMonitor
IDiskReadOnlyRepositoryCollection<TEntity, TKey>
IDiskRepositoryCollection<TEntity>
IDiskRepositoryCollection<TEntity, TKey>
IEntity<TKey>
ILiveMonitoringSubscription

Manages live monitoring subscriptions. When subscribers are present, remote agents send queue metrics and ongoing call data. Implemented by Monitor.Server, no-op when not installed.

IMongoDbService
IMongoDbServiceFactory
IMongoUrlBuilder
IQueueMonitor
IReadOnlyRepositoryCollection
IReadOnlyRepositoryCollection<TEntity, TKey>

This is a common interface for basic function that would be implemented in lockable collection.

IRemoteActionDispatcher

Dispatches collection actions to a remote agent when the collection is not accessible locally. Implemented by Monitor.Server package.

IRepository

Implement this interface for the repository to be automatically registered.

IRepositoryCollection
IRepositoryCollection<TEntity, TKey>
IRepositoryConfiguration

Enums

CallType
Discovery
EMode
GuidStorageFormat

Controls how Guid values are stored in MongoDB.

IndexFailOperation
Registration
SchemaFieldClassification