Class FixedTenantIdResolver

Namespace
Cratis.Arc.Tenancy
Assembly
Cratis.Arc.Core.dll

Represents an implementation of ITenantIdResolver that resolves every request to one configured tenant ID.

[IgnoreConvention]
public class FixedTenantIdResolver : ITenantIdResolver
Inheritance
FixedTenantIdResolver
Implements
Derived
Inherited Members
Extension Methods

Remarks

The tenant ID comes from FixedTenantId and is returned regardless of the request or the hosting environment. It is the resolver for single tenant deployments, where the tenant is a deployment level constant rather than something a request carries.

Constructors

FixedTenantIdResolver(IOptions<ArcOptions>)

Represents an implementation of ITenantIdResolver that resolves every request to one configured tenant ID.

public FixedTenantIdResolver(IOptions<ArcOptions> options)

Parameters

options IOptions<ArcOptions>

The IOptions<TOptions>.

Remarks

The tenant ID comes from FixedTenantId and is returned regardless of the request or the hosting environment. It is the resolver for single tenant deployments, where the tenant is a deployment level constant rather than something a request carries.

Methods

Resolve()

Resolve the TenantId from the current context.

public string Resolve()

Returns

string

The resolved TenantId or an empty string if not found.