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

NamedPipeReconnectionPluginTClient

命名管道重连插件

Definition

命名空间: TouchSocket.NamedPipe
程序集: TouchSocket.NamedPipe (在 TouchSocket.NamedPipe.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
[PluginOptionAttribute(Singleton = true)]
public sealed class NamedPipeReconnectionPlugin<TClient> : ReconnectionPlugin<TClient>
where TClient : INamedPipeClient
Inheritance
Object    DisposableObject    PluginBase    ReconnectionPluginTClient    NamedPipeReconnectionPluginTClient

类型参数

TClient

[缺少 "T:TouchSocket.NamedPipe.NamedPipeReconnectionPlugin`1" 的 <typeparam name="TClient"/> 文档]

构造函数

NamedPipeReconnectionPluginTClient 构造函数,用于初始化NamedPipeReconnectionPlugin实例。

属性

ActionForCheck 每个周期可执行的委托。用于检验客户端活性。返回true表示存活,返回
(重写 ReconnectionPluginTClientActionForCheck)
ActionForConnect ActionForConnect
(继承自 ReconnectionPluginTClient。)
DisposedValue 标识该对象是否已被释放
(继承自 DisposableObject。)
PluginManager 插件管理器
(继承自 PluginBase。)
Tick 检验时间间隔
(继承自 ReconnectionPluginTClient。)

方法

Dispose 释放资源。内部已经处理了SuppressFinalize(Object)
(继承自 DisposableObject。)
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
SetActionForCheck(FuncTClient, Int32, TaskNullableBoolean) 设置一个周期性执行的委托,用于检查客户端状态。
(继承自 ReconnectionPluginTClient。)
SetConnectAction(FuncTClient, TaskBoolean) 设置连接动作
(继承自 ReconnectionPluginTClient。)
SetConnectAction(TimeSpan, FuncTClient, Int32, Exception, Boolean, ActionTClient) 设置连接动作
(继承自 ReconnectionPluginTClient。)
SetConnectAction(Int32, Boolean, Int32, ActionTClient) 设置连接动作
(继承自 ReconnectionPluginTClient。)
ToStringReturns a string that represents the current object.
(继承自 Object。)
UsePolling 使用轮询保持活性。
(继承自 ReconnectionPluginTClient。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见