public sealed class TcpClientFactory : TcpClientFactory<TcpClient>Public NotInheritable Class TcpClientFactory
Inherits TcpClientFactory(Of TcpClient)[<SealedAttribute>]
type TcpClientFactory =
class
inherit TcpClientFactory<TcpClient>
end| TcpClientFactory | 初始化 TcpClientFactory 类的一个新实例 |
| AvailableCount |
获取可用的客户端数量。
该值指示了当前空闲的客户端数量和未创建的客户端数量。 (继承自 ClientFactoryTClient。) |
| CreatedCount |
获取已经创建的客户端数量。
(继承自 ClientFactoryTClient。) |
| DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
| FreeCount |
获取空闲的客户端数量。
(继承自 ClientFactoryTClient。) |
| GetConfig |
获取传输的客户端配置
(继承自 ConnectableClientFactoryTClient。) |
| MaxCount |
最大客户端数量。默认10。
(继承自 ClientFactoryTClient。) |
| MaxWaitTime |
获取或设置客户端池等待可用客户端的最大时间。默认1秒。
(继承自 ClientFactoryTClient。) |
| MinCount |
池中维护的最小客户端数量。默认0。
(继承自 ClientFactoryTClient。) |
| Clear |
清理池中的所有客户端。
(继承自 ClientFactoryTClient。) |
| Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
| DisposeClient |
释放客户端最后的调用。
(继承自 ClientFactoryTClient。) |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetClient |
获取一个客户端实例,并在使用完成后自动归还到客户端池。
(继承自 ClientFactoryTClient。) |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| GetValueTValue |
获取依赖注入的值,当没有注入时,会返回默认行为的值。
(继承自 DependencyObject。) |
| HasValueTValue |
判断在当前对象中是否有已设置的属性值。
(继承自 DependencyObject。) |
| IsAlive |
判断客户端是不是存活状态。
(继承自 ConnectableClientFactoryTClient。) |
| RemoveValueTValue |
移除属性值。
(继承自 DependencyObject。) |
| SetValueTValue |
设置依赖注入的值,如果值已经存在,将被覆盖。
(继承自 DependencyObject。) |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| TryGetValueTValue |
尝试获取依赖注入的值,当没有注入时,会返回。
(继承自 DependencyObject。) |
| TryRemoveValueTValue |
尝试重置属性值,如果没有这个值,则返回。
(继承自 DependencyObject。) |
| Map |
将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。) |
| Map |
将源对象映射到目标类型的实例。
(由 Mapper 定义。) |
| MapTTarget |
将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。) |
| ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |