Table of Contents

Class SupportAiConnectionCollection

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

Each team's AI connection. Default collection name SupportAiConnection.

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

Remarks

The unique index on TeamKey is what keeps it to one connection per team when two administrators save at once.

Constructors

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

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

Parameters

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

Properties

CollectionName

public override string CollectionName { get; }

Property Value

string

Indices

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

Property Value

IEnumerable<CreateIndexModel<SupportAiConnectionEntity>>