Zum Hauptinhalt springen

AiServiceClientOptions

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AiServices

Options for the AiServicesClient. Every routed call is tenant-scoped, so AiServiceClientOptions.TenantId is required: BuildServiceUri throws ServiceConfigurationMissingException without it (stage 3, matching what did to the Communication, Reporting and StreamData clients).

public class AiServiceClientOptions : ServiceClientOptions

Inheritance Object → ServiceClientOptions → AiServiceClientOptions

Properties​

TenantId​

The tenant ID used to scope API requests; routes to {tenantId}/v1. Required for every call that goes through the shared client — the one exception is RedeemTicketAsync, which is anonymous, builds its own client against the service root and therefore still works without a tenant.

public string TenantId { get; set; }

Property Value​

String

EndpointUri​

The root uri of core services

public string EndpointUri { get; set; }

Property Value​

String

MaxTimeout​

Maximum request duration in milliseconds.

public int MaxTimeout { get; set; }

Property Value​

Int32

StreamReadIdleTimeout​

Longest time a streamed response body (tenant dump download, file download) may deliver no data before the read fails with a TimeoutException. The clock restarts with every read that returns data, so a slow but progressing download is never cut off; only a connection that stalls (for example one that died without the client noticing) is. Default ServiceClientOptions.DefaultStreamReadIdleTimeout; zero or negative = no idle timeout.

public TimeSpan StreamReadIdleTimeout { get; set; }

Property Value​

TimeSpan

Constructors​

AiServiceClientOptions()​

public AiServiceClientOptions()