Skip to content

Client Store

Used to dynamically load client configuration.

/// <summary>
/// Retrieval of client configuration
/// </summary>
public interface IClientStore
{
/// <summary>
/// Finds a client by id
/// </summary>
/// <param name="clientId">The client id</param>
/// <param name="ct">The cancellation token.</param>
/// <returns>The client</returns>
Task<Client?> FindClientByIdAsync(string clientId, CancellationToken ct);
/// <summary>
/// Returns all clients for enumeration purposes (e.g., conformance assessment).
/// </summary>
/// <param name="ct">The cancellation token.</param>
/// <returns>An async enumerable of all clients.</returns>
IAsyncEnumerable<Client> GetAllClientsAsync(CancellationToken ct);
}

GetAllClientsAsync returns all configured clients as an async enumerable. Added in 8.0 (prerelease)

Used by the conformance report and configuration validation features. Custom IClientStore implementations must implement this method — see the upgrade guide for details.