20 lines
985 B
C#
20 lines
985 B
C#
using Opc.Ua;
|
|
|
|
namespace EonaCat.Connections.OpcUa.Configuration;
|
|
|
|
public sealed class OpcUaServerOptions
|
|
{
|
|
public string ApplicationName { get; init; } = "EonaCat OPC UA Server";
|
|
public string ApplicationUri { get; init; } = $"urn:{Utils.GetHostName()}:EonaCat:OpcUa:Server";
|
|
public string ProductUri { get; init; } = "urn:EonaCat:Connector:OpcUa";
|
|
public string BaseAddress { get; init; } = "opc.tcp://localhost:4840/EonaCat/Connector";
|
|
public string NamespaceUri { get; init; } = "urn:EonaCat:Connector:OpcUa:AddressSpace";
|
|
public bool EnableSecureEndpoint { get; init; } = true;
|
|
public bool AllowUnsecuredEndpoint { get; init; } = true;
|
|
public bool AutoAcceptUntrustedCertificates { get; init; }
|
|
public bool CheckCertificateRevocation { get; init; } = true;
|
|
public int OperationTimeoutMilliseconds { get; init; } = 15_000;
|
|
public int MaxSessionCount { get; init; } = 100;
|
|
public int MaxSubscriptionCount { get; init; } = 1_000;
|
|
}
|