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

ITcpClosedPlugin 接口

定义了一个ITcpClosedPlugin接口,该接口继承自IPlugin接口。 这个接口的目的是为插件提供一种标识,表明该插件支持处理TCP连接关闭时的操作。

Definition

命名空间: TouchSocket.Sockets
程序集: TouchSocket (在 TouchSocket.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
[DynamicMethodAttribute]
public interface ITcpClosedPlugin : IPlugin, 
	IDisposableObject, IDisposable
Implements
IDisposable, IDisposableObject, IPlugin

属性

DisposedValue 标识该对象是否已被释放
(继承自 IDisposableObject。)

方法

DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(继承自 IDisposable。)
Loaded 在插件被成功添加在IPluginManager时执行。
(继承自 IPlugin。)
OnTcpClosed 在会话断开后触发。
Unloaded 在插件被Remove(IPlugin)时执行。
(继承自 IPlugin。)

扩展方法

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

内部会判断DisposedValue的值,如果为,则不会再执行Dispose


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

参见