Skip to content
Tracon

TenantEgressPolicy

Namespace Tracon · Assembly Tracon.Abstractions.dll

The set of providers a tenant’s data is allowed to reach (egress policy).

public sealed record TenantEgressPolicy : IEquatable<TenantEgressPolicy>
Inheritance
object ← TenantEgressPolicy
Implements
IEquatable<TenantEgressPolicy>
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

A tenant with no saved policy is unrestricted: the absence of a row, not an empty list, means “no limit”. Once a policy is saved, TenantEgressPolicy.AllowedProviders is the closed set of providers the tenant’s calls may reach.

One name space covers every kind of provider: a model provider (ModelBinding.Provider), a speech provider (ISpeechSynthesizer.ProviderName, ISpeechTranscriber.ProviderName), a live voice provider and the image provider. A provider the list does not name is refused before the call.

public TenantEgressPolicy()

Gets the closed set of provider names this tenant’s calls may reach.

public required IReadOnlyList<string> AllowedProviders { get; init; }

IReadOnlyList<string>

Gets the tenant this policy belongs to.

public required string TenantId { get; init; }

string

Gets the time this policy was last written.

public required DateTimeOffset UpdatedAt { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(TenantEgressPolicy? other)

other TenantEgressPolicy?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(TenantEgressPolicy?, TenantEgressPolicy?)

Section titled “ operator ==(TenantEgressPolicy?, TenantEgressPolicy?)”
public static bool operator ==(TenantEgressPolicy? left, TenantEgressPolicy? right)

left TenantEgressPolicy?

right TenantEgressPolicy?

bool

operator !=(TenantEgressPolicy?, TenantEgressPolicy?)

Section titled “ operator !=(TenantEgressPolicy?, TenantEgressPolicy?)”
public static bool operator !=(TenantEgressPolicy? left, TenantEgressPolicy? right)

left TenantEgressPolicy?

right TenantEgressPolicy?

bool