Class ContactMessageCollection
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
-
RepositoryCollectionBaseDiskRepositoryCollectionBase<ContactMessageEntity>ContactMessageCollection
- Implements
-
IDiskRepositoryCollection<ContactMessageEntity>IRepositoryCollectionIReadOnlyRepositoryCollection
- 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>.FetchSizeRepositoryCollectionBase<ContactMessageEntity, ObjectId>._mongoDbServiceFactoryRepositoryCollectionBase<ContactMessageEntity, ObjectId>._loggerRepositoryCollectionBase<ContactMessageEntity, ObjectId>._databaseContextRepositoryCollectionBase<ContactMessageEntity, ObjectId>._mongoDbServiceRepositoryCollectionBase<ContactMessageEntity, ObjectId>.InitAsync(IMongoCollection<ContactMessageEntity>)RepositoryCollectionBase<ContactMessageEntity, ObjectId>.ProtectedCollectionNameRepositoryCollectionBase<ContactMessageEntity, ObjectId>.CollectionNameRepositoryCollectionBase<ContactMessageEntity, ObjectId>.DatabasePartRepositoryCollectionBase<ContactMessageEntity, ObjectId>.ConfigurationNameRepositoryCollectionBase<ContactMessageEntity, ObjectId>.AutoCleanRepositoryCollectionBase<ContactMessageEntity, ObjectId>.CleanOnStartupRepositoryCollectionBase<ContactMessageEntity, ObjectId>.CreateCollectionStrategyRepositoryCollectionBase<ContactMessageEntity, ObjectId>.IndicesRepositoryCollectionBase<ContactMessageEntity, ObjectId>.CoreIndicesRepositoryCollectionBase<ContactMessageEntity, ObjectId>.TypesRepositoryCollectionBase.ConfigurationNameRepositoryCollectionBase.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
mongoDbServiceFactoryIMongoDbServiceFactoryloggerILogger<ContactMessageCollection>optionsIOptions<ThargaTeamOptions>
Properties
CollectionName
public override string CollectionName { get; }
Property Value
Indices
public override IEnumerable<CreateIndexModel<ContactMessageEntity>> Indices { get; }
Property Value
- IEnumerable<CreateIndexModel<ContactMessageEntity>>