Table of Contents

Interface ICommunicationConfig

Namespace
MAS.Communication
Assembly
MAS.Communication.dll

通讯协议的基本参数配置接口

public interface ICommunicationConfig : ICloneable
Inherited Members
Extension Methods

Properties

Ip

获取或设置 Ip 地址

string Ip { get; set; }

Property Value

string

MaxRetries

获取或设置连接失败时的重试次数上限

int MaxRetries { get; set; }

Property Value

int

ProtocolName

获取协议名称

string ProtocolName { get; }

Property Value

string

ReadTimeout

获取或设置读取超时时间(ms)

int ReadTimeout { get; set; }

Property Value

int

WriteTimeout

获取或设置写入超时时间(ms)

int WriteTimeout { get; set; }

Property Value

int

Methods

Clone<T>()

泛型克隆方法,返回指定类型的克隆实例

T Clone<T>() where T : ICommunicationConfig

Returns

T

克隆后的实例

Type Parameters

T

克隆实例的类型,必须实现 ICommunicationConfig 接口