.NET API
TenantEgressPolicy
Tracon.Abstractions.dllThe 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()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”TenantEgressPolicy()
Section titled “ TenantEgressPolicy()”public TenantEgressPolicy()Properties
Section titled “Properties”AllowedProviders
Section titled “ AllowedProviders”Gets the closed set of provider names this tenant’s calls may reach.
public required IReadOnlyList<string> AllowedProviders { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant this policy belongs to.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”Gets the time this policy was last written.
public required DateTimeOffset UpdatedAt { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(TenantEgressPolicy?)
Section titled “ Equals(TenantEgressPolicy?)”public bool Equals(TenantEgressPolicy? other)Parameters
Section titled “Parameters”other TenantEgressPolicy?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(TenantEgressPolicy?, TenantEgressPolicy?)
Section titled “ operator ==(TenantEgressPolicy?, TenantEgressPolicy?)”public static bool operator ==(TenantEgressPolicy? left, TenantEgressPolicy? right)Parameters
Section titled “Parameters”left TenantEgressPolicy?
right TenantEgressPolicy?
Returns
Section titled “Returns”operator !=(TenantEgressPolicy?, TenantEgressPolicy?)
Section titled “ operator !=(TenantEgressPolicy?, TenantEgressPolicy?)”public static bool operator !=(TenantEgressPolicy? left, TenantEgressPolicy? right)Parameters
Section titled “Parameters”left TenantEgressPolicy?
right TenantEgressPolicy?