Namespace Tharga.MongoDB
Classes
- CallDto
Serialization-friendly representation of a database call.
- CallStepDto
Serialization-friendly representation of a call execution step.
- CallSummaryDto
Summary of calls grouped by collection and function.
- ConnectionPoolStateDto
Aggregate connection pool state.
- 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.
- DocumentListQuery
Input for ListDocumentsAsync(CollectionInfo, DocumentListQuery, CancellationToken).
- ErrorSummaryDto
Summary of errors grouped by exception type and collection.
- 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.
- MongoDbServiceFactoryTransactionExtensions
Transaction extensions on IMongoDbServiceFactory. Opens a client session on the configured cluster, runs
bodyinside 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.
- QueueMetricDto
Serialization-friendly queue metric.
- RemoteCollectionInfoDto
Serialization-friendly representation of collection metadata from a remote agent.
- 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.
- SlowCallWithIndexInfoDto
Slow call that may lack index coverage.
- TrackedCollectionEntry
Marker registered in DI by TrackMongoCollection(IServiceCollection, Type, Type) so that
UseMongoDBcan discover externally tracked collections.
Interfaces
- 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.
- 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.
Enums
- GuidStorageFormat
Controls how Guid values are stored in MongoDB.