public class WaitHandlePool<T> : DisposableObject
where T : IWaitHandle
Public Class WaitHandlePool(Of T As IWaitHandle)
Inherits DisposableObject
type WaitHandlePool<'T when 'T : IWaitHandle> =
class
inherit DisposableObject
end
WaitHandlePoolT | 初始化WaitHandle池。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
MaxSign | 最大Sign |
MinSign | 最小Sign |
CancelAll | 取消全部 |
Destroy(WaitDataT) | 销毁 |
Destroy(WaitDataAsyncT) | 销毁 |
Dispose |
释放资源。内部已经处理了SuppressFinalize(Object) (继承自 DisposableObject。) |
Dispose(Boolean) |
处置资源
(重写 DisposableObjectDispose(Boolean)) |
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。) |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetType | Gets the Type of the current instance. (继承自 Object。) |
GetWaitData(Int32) | 获取同步等待数据对象,并为其设置默认结果。 |
GetWaitData(T, Boolean) | 获取同步等待数据对象,并为其设置结果。 |
GetWaitDataAsync(Int32) | 获取异步等待数据对象,并为其设置默认结果。 |
GetWaitDataAsync(T, Boolean) | 获取异步等待数据对象,并为其设置结果。 |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) |
SetRun(Int32) | 根据标志设置异步等待数据为运行状态。 |
SetRun(T) | 根据结果对象的标志设置异步等待数据为运行状态。 |
SetRun(Int32, T) | 根据标志和结果对象设置等待数据为运行状态。 |
ThrowIfDisposed |
判断当前对象是否已经被释放。
如果已经被释放,则抛出ObjectDisposedException异常。
(继承自 DisposableObject。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
TryGetData | 尝试获取指定标志的同步等待数据。 |
TryGetDataAsync | 尝试获取指定标志的异步等待数据。 |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |