Class InboundMailCollection
public class InboundMailCollection : DiskRepositoryCollectionBase<InboundMailEntity>, IInboundMailCollection, IDiskRepositoryCollection<InboundMailEntity>, IDiskRepositoryCollection<InboundMailEntity, ObjectId>, IRepositoryCollection<InboundMailEntity, ObjectId>, IReadOnlyRepositoryCollection<InboundMailEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection
- Inheritance
-
RepositoryCollectionBaseDiskRepositoryCollectionBase<InboundMailEntity>InboundMailCollection
- Implements
-
IDiskRepositoryCollection<InboundMailEntity>IRepositoryCollectionIReadOnlyRepositoryCollection
- Inherited Members
-
DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.GetCollection()DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.DropCollectionAsync()DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.GetDirtyAsync()DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.GetFailedIndices()DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.DropEmptyAsync(IMongoCollection<InboundMailEntity>)DiskRepositoryCollectionBase<InboundMailEntity, ObjectId>.FetchSizeRepositoryCollectionBase<InboundMailEntity, ObjectId>._mongoDbServiceFactoryRepositoryCollectionBase<InboundMailEntity, ObjectId>._loggerRepositoryCollectionBase<InboundMailEntity, ObjectId>._databaseContextRepositoryCollectionBase<InboundMailEntity, ObjectId>._mongoDbServiceRepositoryCollectionBase<InboundMailEntity, ObjectId>.InitAsync(IMongoCollection<InboundMailEntity>)RepositoryCollectionBase<InboundMailEntity, ObjectId>.ProtectedCollectionNameRepositoryCollectionBase<InboundMailEntity, ObjectId>.CollectionNameRepositoryCollectionBase<InboundMailEntity, ObjectId>.DatabasePartRepositoryCollectionBase<InboundMailEntity, ObjectId>.ConfigurationNameRepositoryCollectionBase<InboundMailEntity, ObjectId>.AutoCleanRepositoryCollectionBase<InboundMailEntity, ObjectId>.CleanOnStartupRepositoryCollectionBase<InboundMailEntity, ObjectId>.CreateCollectionStrategyRepositoryCollectionBase<InboundMailEntity, ObjectId>.IndicesRepositoryCollectionBase<InboundMailEntity, ObjectId>.CoreIndicesRepositoryCollectionBase<InboundMailEntity, ObjectId>.TypesRepositoryCollectionBase.ConfigurationNameRepositoryCollectionBase.ActionEvent
Constructors
InboundMailCollection(IMongoDbServiceFactory, ILogger<InboundMailCollection>, IOptions<ThargaTeamOptions>)
public InboundMailCollection(IMongoDbServiceFactory mongoDbServiceFactory, ILogger<InboundMailCollection> logger, IOptions<ThargaTeamOptions> options = null)
Parameters
mongoDbServiceFactoryIMongoDbServiceFactoryloggerILogger<InboundMailCollection>optionsIOptions<ThargaTeamOptions>
Properties
CollectionName
public override string CollectionName { get; }
Property Value
Indices
public override IEnumerable<CreateIndexModel<InboundMailEntity>> Indices { get; }
Property Value
- IEnumerable<CreateIndexModel<InboundMailEntity>>
Remarks
The mail id is unique and never expires: it is what makes reading a mailbox twice harmless, so unlike the support ledger it is kept for as long as the mail is.
TeamKey_Outcome_ReceivedAt serves every list and count that names an outcome, in the order they page:
the postmaster's held and archived mail (no team, and no outcome or archived) and a team's unhandled mail.