Namespace Cratis.Arc.MongoDB

Classes

BsonClassMapExtension

Extension methods for working with MongoDB.Bson.Serialization.BsonClassMap<TClass>.

CannotResolveConcreteDerivedType

Exception that gets thrown when a polymorphic value cannot be resolved to a concrete (instantiable) derived type during BSON deserialization.

ConceptSerializationProvider

Represents a MongoDB.Bson.Serialization.IBsonSerializationProvider for concepts.

ConceptSerializer<T>

Represents a MongoDB.Bson.Serialization.IBsonSerializer<TValue> for ConceptAs<T> types.

ConventionPacks

Holds well known names for convention packs.

CustomDiscriminatorConvention

Represents a custom convention for setting the default discriminator on class maps.

CustomObjectDiscriminatorConvention

Represents a custom MongoDB.Bson.Serialization.Conventions.IDiscriminatorConvention for handling object properties.

DateOnlySerializer

Represents a serializer for handling serialization of DateOnly.

DateTimeOffsetSupportingBsonDateTimeSerializer

Represents a serializer for handling serialization of DateTimeOffset to and from MongoDB.

DefaultMongoDatabaseNameResolver

Represents an implementation of IMongoDatabaseNameResolver that resolves a configured database name with tenant suffix.

DefaultMongoServerResolver

Represents an implementation of IMongoServerResolver that resolves a configured MongoDB.Driver.MongoUrl.

DerivedTypeClassMapConvention

Class map convention that registers the derived-type discriminator convention for every concrete [DerivedType] as its class map is created.

DerivedTypeDiscriminatorConvention

Represents a MongoDB discriminator convention for handling types that have DerivedTypeAttribute.

IgnoreConventionsAttribute

Used to mark models for ignoring specific convention packs.

IgnoreConventionsAttributeFilter

Represents an implementation of ICanFilterMongoDBConventionPacksForType for filtering based on IgnoreConventionsAttribute.

JsonObjectBsonSerializer

MongoDB BSON serializer for JsonObject.

LineStringSerializer

Represents a serializer for handling serialization of LineString.

MissingValueKeyInConcept

Exception that gets thrown when a concept is missing a value key.

MongoCollectionAdapter<T>

Represents an adapter for MongoDB.Driver.IMongoCollection<TDocument> to overcome shortcomings of open generic service registrations with the default ServiceCollection registrations.

MongoDBAccessTokenNotResolved

The exception that is thrown when MongoDB asks for an access token and the connection resolution no longer gives one.

MongoDBBuilder

Represents an implementation of IMongoDBBuilder.

MongoDBBuilderExtensions

Provides extension methods for the IMongoDBBuilder.

MongoDBClientFactory

Represents an implementation of IMongoDBClientFactory.

MongoDBConnection

Represents a resolved connection to a MongoDB database.

MongoDBConnectionResolutionHooks

Represents the hooks that let a MongoDB client follow a resolved connection after it has been created.

MongoDBConnections

Represents an implementation of IMongoDBConnections.

MongoDBConventionPackDefinition

Represents a definition for a MongoDB convention pack.

MongoDBDefaults

Represents the setup of MongoDB defaults.

MongoDBOptions

Represents the configuration for MongoDB.

MongoDBReadModelForCommandResolver

Represents an ICanResolveReadModelForCommand that resolves read models held in MongoDB through the collection for the read model, keyed by the command's resolved key.

MongoDBWatcher

Represents an implementation of IMongoDBWatcher that maintains a single change stream connection per database per process.

MongoDatabaseNameResolverNotConfigured

The exception that is thrown when the IMongoServerResolver is missing.

MongoServerResolverNotConfigured

The exception that is thrown when the IMongoServerResolver is missing.

NamingPolicyNameConvention

A naming policy based name convention for MongoDB member maps. This convention applies a naming policy to the element names of member maps.

NamingPolicyNotConfigured

The exception that is thrown when the naming policy for MongoDB has not been configured.

PointSerializer

Represents a serializer for handling serialization of Point.

PolygonSerializer

Represents a serializer for handling serialization of Polygon.

ReadModelCollectionsNeverNullConvention

Represents a MongoDB.Bson.Serialization.Conventions.IMemberMapConvention that materializes a read model's declared non-nullable collection members as empty collections rather than null.

ResolvedConnectionMongoDBExtensions

Provides extension methods for applying a ResolvedConnection to MongoDB.

TimeOnlySerializer

Represents a serializer for handling serialization of TimeOnly.

TimeSpanSerializer

Represents a serializer for handling serialization of TimeSpan.

TypeExtensions

Extension methods for Type.

TypeSerializer

Represents a serializer for Type.

UnableToDeserializeValueForConcept

Exception that gets thrown when a value cannot be deserialized for a concept.

UnknownType

Exception that gets thrown when an unknown type is encountered.

Interfaces

IBsonClassMapFor<T>

Defines a map for mapping a type to bson for MongoDB.

ICanFilterMongoDBConventionPacksForType

Defines a system that can tell whether a specific Type should be affected by a MongoDB.Bson.Serialization.Conventions.IConventionPack.

ICanProvideMongoDBConventionPacks

Defines a system that can provide convention packs for MongoDB.

IMongoDBBuilder

Defines the builder for MongoDB.

IMongoDBClientFactory

Defines a factory that is capable of creating MongoDB.Driver.IMongoClient instances.

IMongoDBConnections

Defines a system that resolves the MongoDB connection for the current tenant through the configured connection resolution.

IMongoDBJoinedObserveBuilder<T1, T2>

Defines the builder for observing two joined collections.

IMongoDBJoinedObserveBuilder<T1, T2, T3>

Defines the builder for observing three joined collections.

IMongoDBObserveBuilder<TDocument>

Defines the builder for observing a single collection, enabling joins with other collections.

IMongoDBWatcher

Defines a system that maintains a single change stream connection per database per process, allowing multiple collection observations to share the same underlying change stream.

IMongoDatabaseNameResolver

Defines a system that can resolve the name of a MongoDB database.

IMongoServerResolver

Defines a system that can resolve a MongoDB.Driver.MongoUrl.