[PluginOptionAttribute(Singleton = true)]
public sealed class CheckClearPlugin<TClient> : PluginBase
where TClient : class, IClient, IClosableClient
<PluginOptionAttribute(Singleton := true)>
Public NotInheritable Class CheckClearPlugin(Of TClient As {Class, IClient, IClosableClient})
Inherits PluginBase
[<SealedAttribute>]
[<PluginOptionAttribute(Singleton = true)>]
type CheckClearPlugin<'TClient when 'TClient : not struct and IClient and IClosableClient> =
class
inherit PluginBase
end
[缺少 "T:TouchSocket.Sockets.CheckClearPlugin`1" 的 <typeparam name="TClient"/> 文档]
CheckClearPluginTClient | 检查清理连接插件。服务器与客户端均适用。 |
CheckClearType | 清理统计类型。默认为:All。当设置为OnlySend时, 则只检验发送方向是否有数据流动。没有的话则会断开连接。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
OnClose | 当因为超出时间限定而关闭。 |
PluginManager |
插件管理器
(继承自 PluginBase。) |
Tick | 获取或设置清理无数据交互的Client,默认60秒。 |
Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
SetCheckClearType | 设置清理统计类型。此方法允许指定在何种情况下应清理统计信息。 默认情况下,清理类型设置为All,表示所有情况都进行清理。 如果设置为OnlySend,则仅检验发送方向是否有数据流动, 若没有数据流动,则断开连接。 |
SetOnClose(ActionTClient, CheckClearType) | 设置在超出时间限定而关闭时的回调操作。 |
SetOnClose(FuncTClient, CheckClearType, Task) | |
SetTick | 设置清理无数据交互的Client,默认60秒。 |
ToString | Returns a string that represents the current object. (继承自 Object。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |