Class ContactMailSuppressionCollection
Addresses that opted out of contact mail, one document per address and category, default collection name ContactMailSuppression; kept for good.
public class ContactMailSuppressionCollection : DiskRepositoryCollectionBase<ContactMailSuppressionEntity>, IContactMailSuppressionCollection, IDiskRepositoryCollection<ContactMailSuppressionEntity>, IDiskRepositoryCollection<ContactMailSuppressionEntity, ObjectId>, IRepositoryCollection<ContactMailSuppressionEntity, ObjectId>, IReadOnlyRepositoryCollection<ContactMailSuppressionEntity, ObjectId>, IRepositoryCollection, IReadOnlyRepositoryCollection
- Inheritance
-
RepositoryCollectionBaseDiskRepositoryCollectionBase<ContactMailSuppressionEntity>ContactMailSuppressionCollection
- Implements
-
IDiskRepositoryCollection<ContactMailSuppressionEntity>IRepositoryCollectionIReadOnlyRepositoryCollection
- Inherited Members
-
DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.GetSizeAsync(CancellationToken)DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.GetCollection()DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.DropCollectionAsync()DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.GetDirtyAsync()DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.GetFailedIndices()DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.DropEmptyAsync(IMongoCollection<ContactMailSuppressionEntity>)DiskRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.FetchSizeRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>._mongoDbServiceFactoryRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>._loggerRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>._databaseContextRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>._mongoDbServiceRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.InitAsync(IMongoCollection<ContactMailSuppressionEntity>)RepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.ProtectedCollectionNameRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.CollectionNameRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.DatabasePartRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.ConfigurationNameRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.AutoCleanRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.CleanOnStartupRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.CreateCollectionStrategyRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.IndicesRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.CoreIndicesRepositoryCollectionBase<ContactMailSuppressionEntity, ObjectId>.TypesRepositoryCollectionBase.ConfigurationNameRepositoryCollectionBase.ActionEvent
Remarks
The unique index is what keeps one opt-out per address and category when two requests race, and what reads an address's opt-outs.
Constructors
ContactMailSuppressionCollection(IMongoDbServiceFactory, ILogger<ContactMailSuppressionCollection>, IOptions<ThargaTeamOptions>)
Creates the collection under the configured name.
public ContactMailSuppressionCollection(IMongoDbServiceFactory mongoDbServiceFactory, ILogger<ContactMailSuppressionCollection> logger, IOptions<ThargaTeamOptions> options = null)
Parameters
mongoDbServiceFactoryIMongoDbServiceFactoryloggerILogger<ContactMailSuppressionCollection>optionsIOptions<ThargaTeamOptions>
Properties
CollectionName
public override string CollectionName { get; }
Property Value
Indices
public override IEnumerable<CreateIndexModel<ContactMailSuppressionEntity>> Indices { get; }
Property Value
- IEnumerable<CreateIndexModel<ContactMailSuppressionEntity>>