ITenantStore
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe store for tenant registrations.
public interface ITenantStoreMethods
Section titled “Methods”DeleteAsync(string, CancellationToken)
Section titled “ DeleteAsync(string, CancellationToken)”Deletes a tenant registration. The tenant’s data is not deleted.
ValueTask<bool> DeleteAsync(string slug, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”slug string
The tenant key.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”true if the record was deleted.
ListAsync(CancellationToken)
Section titled “ ListAsync(CancellationToken)”Lists registered tenants, ordered by key.
ValueTask<IReadOnlyList<TenantDescriptor>> ListAsync(CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<TenantDescriptor>>
The tenants.
SaveAsync(TenantDescriptor, CancellationToken)
Section titled “ SaveAsync(TenantDescriptor, CancellationToken)”Adds or updates a tenant. The key is TenantDescriptor.Slug.
ValueTask<TenantDescriptor> SaveAsync(TenantDescriptor tenant, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenant TenantDescriptor
The tenant to write.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”The persisted record.