namespace DMS.Infrastructure.Configuration
{
///
/// OPC UA服务配置
///
public class OpcUaServiceOptions
{
///
/// 配置节名称
///
public const string SectionName = "OpcUaService";
///
/// 最大并发连接数
///
public int MaxConcurrentConnections { get; set; } = 10;
///
/// 重连延迟(毫秒)
///
public int ReconnectDelayMs { get; set; } = 5000;
///
/// 订阅发布间隔(毫秒)
///
public int SubscriptionPublishingIntervalMs { get; set; } = 1000;
///
/// 订阅采样间隔(毫秒)
///
public int SubscriptionSamplingIntervalMs { get; set; } = 1000;
///
/// 连接超时时间(毫秒)
///
public int ConnectionTimeoutMs { get; set; } = 30000;
///
/// 是否自动接受不受信任的证书
///
public bool AutoAcceptUntrustedCertificates { get; set; } = true;
}
}