Zum Hauptinhalt springen

BotServiceClientOptions

Namespace: Meshmakers.Octo.Sdk.ServiceClient.BotServices

Options for the BotServicesClient.

public class BotServiceClientOptions : ServiceClientOptions

Inheritance Object → ServiceClientOptions → BotServiceClientOptions

Remarks:

Deliberately without a TenantId. Every tenant-addressed operation of this client already takes its target tenant as the first method argument, and that target changes from call to call — a parent tenant's administrator backs up a child tenant with their own token. An ambient tenant on the options could not express that: the base URI is built once and cached (ServiceClient.ServiceUri), and the client is registered as a singleton in octo-cli, so the first tenant seen would be frozen for the process lifetime.

Fields​

DefaultTusPartSizeBytes​

Default size of one part of a tus upload: 50 MiB, the part size Refinery Studio uses. It stays clearly below the ingress body limit of 100m on staging-1, prod-1 and prod-2.

public static long DefaultTusPartSizeBytes;

MinTusPartSizeBytes​

Smallest accepted part size (1 MiB); smaller parts only multiply the round trips.

public static long MinTusPartSizeBytes;

MaxTusPartSizeBytes​

Largest accepted part size (90 MiB): the ingress body limit of the managed environments is 100m, and the request needs headroom below it.

public static long MaxTusPartSizeBytes;

Properties​

TusPartSizeBytes​

The maximum number of bytes sent in one request of a tus upload (restore of a backup, import of archive data). The default is 50 MiB (BotServiceClientOptions.DefaultTusPartSizeBytes). A value outside BotServiceClientOptions.MinTusPartSizeBytes and BotServiceClientOptions.MaxTusPartSizeBytes is rejected, because a part above the body limit of the ingress is refused with 413 and never reaches the bot service.

public long TusPartSizeBytes { get; set; }

Property Value​

Int64

Exceptions​

ArgumentOutOfRangeException
The value is outside the accepted range.

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​

BotServiceClientOptions()​

public BotServiceClientOptions()