Interface ISupportAiConnectionStore
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
Keeps each team's AI connection. The persistence port behind ISupportAiConnectionService.
public interface ISupportAiConnectionStore
Remarks
It never sees a key in clear. The service encrypts the key before handing the record over, so an adapter stores, and a database dump holds, only what Data Protection produced.
One record per team. SetAsync(StoredSupportAiConnection, CancellationToken) replaces the team's record whole, because a connection is one fact: a model kept from one provider beside an address from another would answer from neither.
Methods
DeleteForTeamAsync(string, CancellationToken)
Removes the team's record, when the team itself is removed; true when there was one.
Task<bool> DeleteForTeamAsync(string teamKey, CancellationToken cancellationToken = default)
Parameters
teamKeystringcancellationTokenCancellationToken
Returns
GetAsync(string, CancellationToken)
The team's record, or null when the team never chose.
Task<StoredSupportAiConnection> GetAsync(string teamKey, CancellationToken cancellationToken = default)
Parameters
teamKeystringcancellationTokenCancellationToken
Returns
SetAsync(StoredSupportAiConnection, CancellationToken)
Replaces the team's record with connection.
Task SetAsync(StoredSupportAiConnection connection, CancellationToken cancellationToken = default)
Parameters
connectionStoredSupportAiConnectioncancellationTokenCancellationToken