feat(historian-client): add TCP/TLS options fields
This commit is contained in:
+16
@@ -40,4 +40,20 @@ public sealed record WonderwareHistorianClientOptions(
|
||||
[Display(Name = "Probe timeout (seconds)", Description = "Connection test timeout. Default 15s.", GroupName = "Diagnostics")]
|
||||
[Range(1, 60)]
|
||||
public int ProbeTimeoutSeconds { get; init; } = 15;
|
||||
|
||||
/// <summary>Sidecar TCP host (DNS name or IP). Required for the TCP transport.</summary>
|
||||
public string? Host { get; init; }
|
||||
|
||||
/// <summary>Sidecar TCP port (matches the sidecar's OTOPCUA_HISTORIAN_TCP_PORT).</summary>
|
||||
public int Port { get; init; }
|
||||
|
||||
/// <summary>When true, the client wraps the TCP stream in TLS before the Hello handshake.</summary>
|
||||
public bool UseTls { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional SHA-1 thumbprint (hex, no spaces) the client pins the sidecar's TLS server
|
||||
/// cert against. When null/empty and <see cref="UseTls"/> is true, the client validates
|
||||
/// the cert chain normally (CA-issued cert).
|
||||
/// </summary>
|
||||
public string? ServerCertThumbprint { get; init; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user