Class OpenShellOptions
- Namespace
- OpenShell.DependencyInjection
- Assembly
- OpenShell.Sdk.DependencyInjection.dll
Mutable, configuration-bindable settings for one gateway. OpenShellClientOptions is immutable, so the options pattern binds to this class and the factory converts it.
public sealed class OpenShellOptions
- Inheritance
-
OpenShellOptions
- Inherited Members
Properties
Address
Gateway address, for example https://gateway.example.com. Required.
public Uri? Address { get; set; }
Property Value
AllowInsecureAuth
Permits credentials over plaintext http:// to a non-loopback host.
public bool AllowInsecureAuth { get; set; }
Property Value
Auth
An authentication provider built in code. Takes precedence over Token; not bindable from configuration.
public IAuthProvider? Auth { get; set; }
Property Value
CaCertificatePath
Path to a PEM file with the CA certificate(s) to trust instead of the system roots.
public string? CaCertificatePath { get; set; }
Property Value
ClientCertificatePath
Path to a PEM client certificate for mTLS.
public string? ClientCertificatePath { get; set; }
Property Value
ClientKeyPath
Path to the PEM private key for ClientCertificatePath; omit when the key is in the certificate file.
public string? ClientKeyPath { get; set; }
Property Value
DefaultTimeout
Deadline applied to unary calls that do not set their own.
public TimeSpan? DefaultTimeout { get; set; }
Property Value
InsecureSkipVerify
Disables server certificate validation. Development only.
public bool InsecureSkipVerify { get; set; }
Property Value
Retry
Retry settings. Null keeps Default.
public RetryOptions? Retry { get; set; }
Property Value
RouteToOwnerReplica
Routes long-lived streams to the sandbox's owner replica; see RouteToOwnerReplica.
public bool RouteToOwnerReplica { get; set; }
Property Value
Tls
TLS settings built in code. Takes precedence over the certificate path settings; not bindable from configuration.
public TlsOptions? Tls { get; set; }
Property Value
Token
Static bearer token. Prefer a token provider set through Auth for anything that expires.
public string? Token { get; set; }
Property Value
Workspace
Workspace used when none is given. Defaults to default.
public string Workspace { get; set; }