Table of Contents

Interface ITenantResolver<TKey>

Namespace
Arbiter.CommandQuery.Definitions
Assembly
Arbiter.CommandQuery.dll

interface for extracting tenant key from IPrincipal instance

public interface ITenantResolver<TKey>

Type Parameters

TKey

The type of the key.

Methods

GetTenantId(IPrincipal?)

Gets the tenant identifier from the specified principal.

ValueTask<TKey?> GetTenantId(IPrincipal? principal)

Parameters

principal IPrincipal

The principal.

Returns

ValueTask<TKey>

The tenant identifier for the specified principal.