public sealed class LoopAction : DisposableObject
Public NotInheritable Class LoopAction
Inherits DisposableObject
[<SealedAttribute>]
type LoopAction =
class
inherit DisposableObject
end
LoopAction | 初始化 LoopAction 实例。 |
DisposedValue |
标识该对象是否已被释放
(继承自 DisposableObject。) |
ExecutedCount | 已执行次数。 |
Interval | 执行间隔。 |
LoopCount | 循环次数。 |
RunStatus | 是否在运行。 |
CreateLoopAction(ActionLoopAction) | 创建并返回一个 LoopAction 实例,该实例将在无限次数和无间隔下执行给定的异步操作。 |
CreateLoopAction(Int32, ActionLoopAction) | 创建并返回一个 LoopAction 实例,该实例将在指定次数和无间隔下执行给定的异步操作。 |
CreateLoopAction(TimeSpan, ActionLoopAction) | 创建并返回一个 LoopAction 实例,该实例将在无限次数和指定间隔下执行给定的异步操作。 |
CreateLoopAction(Int32, Int32, ActionLoopAction) | 创建并返回一个 LoopAction 实例,该实例将在指定次数和以毫秒为单位的间隔下执行给定的异步操作。 |
CreateLoopAction(Int32, TimeSpan, ActionLoopAction) | 创建并返回一个 LoopAction 实例,该实例将在指定次数和间隔下执行给定的异步操作。 |
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。) |
Pause | 暂停正在运行的 LoopAction 实例。 |
Rerun | 重新运行 LoopAction 实例,重置已执行次数和运行状态。 |
RerunAsync | 以异步方式重新运行 LoopAction 实例。 |
Resume | 恢复已暂停的 LoopAction 实例。 |
Run | 运行 LoopAction 实例,如果已运行则不执行任何操作。 |
RunAsync | 以异步方式运行 LoopAction 实例。 |
ToString | Returns a string that represents the current object. (继承自 Object。) |
Map | (由 Mapper 定义。) |
Map | (由 Mapper 定义。) |
MapTTarget | (由 Mapper 定义。) |
ToJsonString |
转换为Json
(由 SerializeConvert 定义。) |