[DynamicMethodAttribute]
public interface ITcpClosingPlugin : IPlugin,
IDisposableObject, IDisposable
<DynamicMethodAttribute>
Public Interface ITcpClosingPlugin
Inherits IPlugin, IDisposableObject, IDisposable
[<DynamicMethodAttribute>]
type ITcpClosingPlugin =
interface
interface IPlugin
interface IDisposableObject
interface IDisposable
end
DisposedValue |
标识该对象是否已被释放
(继承自 IDisposableObject。) |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (继承自 IDisposable。) |
Loaded |
在插件被成功添加在IPluginManager时执行。
(继承自 IPlugin。) |
OnTcpClosing | 处理TCP连接即将断开的情况(仅在主动断开连接时有效)。 此方法主要用于执行断开连接前的清理工作。 |
Unloaded |
在插件被Remove(IPlugin)时执行。
(继承自 IPlugin。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
内部会判断DisposedValue的值,如果为,则不会再执行Dispose。 (由 SystemExtension 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |