Table of Contents

Class ContactMessageCollection

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll

The log of messages staff sent to contacts, default collection name ContactMessage; a message expires UserMailRetention after it was sent, with the mails it queued.

public class ContactMessageCollection : DiskRepositoryCollectionBase<ContactMessageEntity>, IContactMessageCollection, IDiskRepositoryCollection<ContactMessageEntity>, IDiskRepositoryCollection<ContactMessageEntity, ObjectId>, IRepositoryCollection<ContactMessageEntity, ObjectId>, IReadOnlyRepositoryCollection<ContactMessageEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection
Inheritance
RepositoryCollectionBase
RepositoryCollectionBase<ContactMessageEntity, ObjectId>
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>
DiskRepositoryCollectionBase<ContactMessageEntity>
ContactMessageCollection
Implements
IDiskRepositoryCollection<ContactMessageEntity>
IDiskRepositoryCollection<ContactMessageEntity, ObjectId>
IRepositoryCollection<ContactMessageEntity, ObjectId>
IReadOnlyRepositoryCollection<ContactMessageEntity, ObjectId>
IRepositoryCollection
IReadOnlyRepositoryCollection
Inherited Members
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.GetCollection()
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.DropCollectionAsync()
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.GetDirtyAsync()
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.GetFailedIndices()
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.DropEmptyAsync(IMongoCollection<ContactMessageEntity>)
DiskRepositoryCollectionBase<ContactMessageEntity, ObjectId>.FetchSize
RepositoryCollectionBase<ContactMessageEntity, ObjectId>._mongoDbServiceFactory
RepositoryCollectionBase<ContactMessageEntity, ObjectId>._logger
RepositoryCollectionBase<ContactMessageEntity, ObjectId>._databaseContext
RepositoryCollectionBase<ContactMessageEntity, ObjectId>._mongoDbService
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.InitAsync(IMongoCollection<ContactMessageEntity>)
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.ProtectedCollectionName
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.CollectionName
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.DatabasePart
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.ConfigurationName
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.AutoClean
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.CleanOnStartup
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.CreateCollectionStrategy
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.Indices
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.CoreIndices
RepositoryCollectionBase<ContactMessageEntity, ObjectId>.Types
RepositoryCollectionBase.ConfigurationName
RepositoryCollectionBase.ActionEvent

Constructors

ContactMessageCollection(IMongoDbServiceFactory, ILogger<ContactMessageCollection>, IOptions<ThargaTeamOptions>)

Creates the collection under the configured name and retention.

public ContactMessageCollection(IMongoDbServiceFactory mongoDbServiceFactory, ILogger<ContactMessageCollection> logger, IOptions<ThargaTeamOptions> options = null)

Parameters

mongoDbServiceFactory IMongoDbServiceFactory
logger ILogger<ContactMessageCollection>
options IOptions<ThargaTeamOptions>

Properties

CollectionName

public override string CollectionName { get; }

Property Value

string

Indices

public override IEnumerable<CreateIndexModel<ContactMessageEntity>> Indices { get; }

Property Value

IEnumerable<CreateIndexModel<ContactMessageEntity>>