Table of Contents

Class DataProtectionKeyCollection

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

The Data Protection key ring. Default collection name DataProtectionKey.

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

Remarks

Shared by every instance that reads the same database, which is the point of keeping it here.

Constructors

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

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

Parameters

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

Properties

CollectionName

public override string CollectionName { get; }

Property Value

string

Indices

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

Property Value

IEnumerable<CreateIndexModel<DataProtectionKeyEntity>>