Class GrpcClient
Namespace: ArmoniK.Api.Client.Options
Assembly: ArmoniK.Api.Client.dll
Options for creating a gRPC Client with
[ExtractDocumentation("Options for GrpcClient")]
[PublicAPI]
public class GrpcClient
Inheritance
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()
Fields
SettingSection
Path to the section containing the values in the configuration object
public const string SettingSection = "GrpcClient"
Field Value
Properties
AllowUnsafeConnection
Allow unsafe connections to the endpoint (without SSL), defaults to false
public bool AllowUnsafeConnection { get; set; }
Property Value
BackoffMultiplier
The backoff will be multiplied by this multiplier after each retry attempt and will increase exponentially when the multiplier is greater than 1.
public double BackoffMultiplier { get; set; }
Property Value
CaCert
Path to the Certificate Authority file in pem format
public string CaCert { get; set; }
Property Value
CertP12
Path to the certificate file in p12/pfx format
public string CertP12 { get; set; }
Property Value
CertPem
Path to the certificate file in pem format
public string CertPem { get; set; }
Property Value
Endpoint
Endpoint for sending requests
public string? Endpoint { get; set; }
Property Value
HasClientCertificate
True if the options specify a client certificate
public bool HasClientCertificate { get; }
Property Value
HttpMessageHandler
Which HttpMessageHandler to use. Valid options:
HttpClientHandlerWinHttpHandlerGrpcWebHandlerIf the handler is not set, the best one will be used.
public string HttpMessageHandler { get; set; }
Property Value
InitialBackOff
InitialBackOff is a property that gets and sets the initial backOff time for retrying an operation.
public TimeSpan InitialBackOff { get; set; }
Property Value
KeepAliveTime
KeepAliveTime is the time after which the connection will be kept alive.
public TimeSpan KeepAliveTime { get; set; }
Property Value
KeepAliveTimeInterval
KeepAliveTimeInterval is the interval at which the connection will be kept alive.
public TimeSpan KeepAliveTimeInterval { get; set; }
Property Value
KeyPem
Path to the key file in pem format
public string KeyPem { get; set; }
Property Value
MaxAttempts
MaxAttempts is a property that gets and sets the maximum number of attempts to retry an operation.
public int MaxAttempts { get; set; }
Property Value
MaxBackOff
MaxBackOff is a property that gets and sets the maximum backOff time for retrying an operation.
public TimeSpan MaxBackOff { get; set; }
Property Value
MaxIdleTime
MaxIdleTime is the maximum idle time after which the connection will be closed.
public TimeSpan MaxIdleTime { get; set; }
Property Value
OverrideTargetName
Override the endpoint name during SSL verification. This option is only used when AllowUnsafeConnection is true and only when the runtime is .NET Framework. Automatic target name by default. Should be overriden by the right name to reduce performance cost.
public string OverrideTargetName { get; set; }
Property Value
Proxy
Proxy configuration. If empty, the default proxy configuration is used. If “none”, proxy is disabled. If “system”, the system proxy is used Otherwise, it is the URL of the proxy to use
public string Proxy { get; set; }
Property Value
ProxyPassword
Password used for proxy authentication
public string ProxyPassword { get; set; }
Property Value
ProxyUsername
Username used for proxy authentication
public string ProxyUsername { get; set; }
Property Value
RequestTimeout
Timeout for grpc requests. Defaults to no timeout.
public TimeSpan RequestTimeout { get; set; }
Property Value
ReusePorts
Enable the option SO_REUSE_UNICASTPORT upon socket opening to limit port exhaustion
public bool ReusePorts { get; set; }