Skip to content

ITenantContext

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Resolves the current request’s tenant. In a single-tenant setup, returns a fixed value and requires no additional configuration.

public interface ITenantContext

In multi-tenant scenarios, the application binds this interface to its own identity infrastructure: an HTTP header, a claim, or a subdomain.

The current tenant’s identifier. Never returns empty.

string TenantId { get; }

string