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

IRelayClient 接口

中继客户端接口

Definition

命名空间: TouchSocket.Dmtp.Relay
程序集: TouchSocketPro.Dmtp (在 TouchSocketPro.Dmtp.dll 中) 版本:4.1.4.7+7f7e1f78093c99347956e09330d5d7aca1d2bdf2
C#
public interface IRelayClient : IDisposable, 
	IClosableClient
Implements
IDisposable, IClosableClient

属性

ClosedToken 获取一个 CancellationToken,用于指示客户端是否已关闭。
(继承自 IClosableClient。)
Config 配置信息
ConnectionCount 当前连接数量

方法

CloseAsync 关闭客户端。
(继承自 IClosableClient。)
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(继承自 IDisposable。)

扩展方法

SafeDispose 安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。)

参见