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
MaxRetries
获取或设置连接失败时的重试次数上限
int MaxRetries { get; set; }
Property Value
ProtocolName
获取协议名称
string ProtocolName { get; }
Property Value
ReadTimeout
获取或设置读取超时时间(ms)
int ReadTimeout { get; set; }
Property Value
WriteTimeout
获取或设置写入超时时间(ms)
int WriteTimeout { get; set; }
Property Value
Methods
Clone<T>()
泛型克隆方法,返回指定类型的克隆实例
T Clone<T>() where T : ICommunicationConfig
Returns
- T
克隆后的实例
Type Parameters
T克隆实例的类型,必须实现 ICommunicationConfig 接口