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