Skip to content

Class TenantResolutionRequest

Namespace: Cephalon.Abstractions.Tenancy
Assembly: Cephalon.Abstractions.dll

Describes the host-neutral hints available when resolving a tenant for the current operation.

public sealed class TenantResolutionRequest

objectTenantResolutionRequest

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

TenantResolutionRequest(string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ TenantResolutionRequest(string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>?)”

Creates a new tenant-resolution request.

public TenantResolutionRequest(string? hostName = null, string? pathBase = null, string? requestedTenantId = null, string? requestedTenantKey = null, string? userId = null, IReadOnlyDictionary<string, string>? attributes = null)

hostName string?

The host name associated with the current request when one is known.

pathBase string?

The path base associated with the current request when one is known.

requestedTenantId string?

The explicitly requested tenant identifier when one is known.

requestedTenantKey string?

The explicitly requested tenant key when one is known.

userId string?

The current user identifier when one is known.

attributes IReadOnlyDictionary<string, string>?

Optional resolution hints supplied by the host or caller.

Gets optional resolution hints supplied by the host or caller.

public IReadOnlyDictionary<string, string> Attributes { get; }

IReadOnlyDictionary<string, string>

Gets the host name associated with the current request when one is known.

public string? HostName { get; }

string?

Gets the path base associated with the current request when one is known.

public string? PathBase { get; }

string?

Gets the explicitly requested tenant identifier when one is known.

public string? RequestedTenantId { get; }

string?

Gets the explicitly requested tenant key when one is known.

public string? RequestedTenantKey { get; }

string?

Gets the current user identifier when one is known.

public string? UserId { get; }

string?