一款简单易用的基础网络通讯组件库。

ClientFactoryResultTClient 结构

客户端工厂结果

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public readonly struct ClientFactoryResult<TClient> : IDisposable
where TClient : IClient
Inheritance
Object    ValueType    ClientFactoryResultTClient
Implements
IDisposable

类型参数

TClient
客户端类型,必须实现IClient接口

构造函数

ClientFactoryResultTClient 初始化客户端工厂结果

属性

Client 客户端

方法

Dispose 释放资源,执行对客户端的操作
EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
SafeDispose 安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见