public abstract class ClientFactory<TClient> : DependencyObject
where TClient : IClient
Public MustInherit Class ClientFactory(Of TClient As IClient)
Inherits DependencyObject
[<AbstractClassAttribute>]
type ClientFactory<'TClient when 'TClient : IClient> =
class
inherit DependencyObject
end
ClientFactoryTClient | 客户端工厂类的构造函数。 |
AvailableCount |
获取可用的客户端数量。
该值指示了当前空闲的客户端数量和未创建的客户端数量。 |
CreatedClients | 已创建的客户端安全列表,一般不要直接操作。 |
CreatedCount | 获取已经创建的客户端数量。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
FreeClients | 空闲客户端的安全队列,一般不要直接操作。 |
FreeCount | 获取空闲的客户端数量。 |
MaxCount | 最大客户端数量。默认10。 |
MinCount | 池中维护的最小客户端数量。默认0。 |
Clear | 清理池中的所有客户端。 |
CloneTo |
将当前对象的依赖项克隆到目标对象中
(继承自 DependencyObject。) |
CreateClient | 创建客户端 |
Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
Dispose(Boolean) |
处置资源
(重写 DependencyObjectDispose(Boolean)) |
DisposeClient | 释放客户端最后的调用。 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) |
GetClient | 获取一个指定客户端,默认情况下等待1秒。 |
GetClient(TimeSpan) | 获取用于传输的客户端结果。可以支持IDisposable。 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
GetValueTValue |
获取依赖注入的值,当没有注入时,会返回默认行为的值。
(继承自 DependencyObject。) |
HasValueTValue |
判断在当前对象中是否有已设置的属性值。
(继承自 DependencyObject。) |
IsAlive | 判断客户端是不是存活状态。 |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
RemoveValueTValue |
移除属性值。
(继承自 DependencyObject。) |
RentClient | 租赁客户端 |
ReturnClient | 放回使用完成的客户端 |
SetValueTValue |
设置依赖注入的值,如果值已经存在,将被覆盖。
(继承自 DependencyObject。) |
ThrowIfDisposed |
判断当前对象是否已经被释放。
如果已经被释放,则抛出ObjectDisposedException异常。
(继承自 DisposableObject。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
TryGetValueTValue |
尝试获取依赖注入的值,当没有注入时,会返回。
(继承自 DependencyObject。) |
TryRemoveValueTValue |
尝试重置属性值,如果没有这个值,则返回。
(继承自 DependencyObject。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |