Class WorkflowTimer
Inheritance
↳ object
↳ WorkflowTimer
↳ MultiServerTimer
Implements
IDisposable
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Runtime.Timers
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class WorkflowTimer : IDisposable
Constructors
WorkflowTimer(TimerCategory, WorkflowRuntime, Func<Task>, Func<Task<long?>>)
Declarationpublic WorkflowTimer(TimerCategory timerCategory, WorkflowRuntime runtime, Func<Task> onTimerAsync, Func<Task<long?>> intervalGetterAsync)
Type | Name | Description |
---|---|---|
TimerCategory | timerCategory | |
WorkflowRuntime | runtime | |
Func<Task> | onTimerAsync | |
Func<Task<long?>> | intervalGetterAsync |
WorkflowTimer(TimerCategory, WorkflowRuntime, Func<Task>, long)
Declarationpublic WorkflowTimer(TimerCategory timerCategory, WorkflowRuntime runtime, Func<Task> onTimerAsync, long interval)
Type | Name | Description |
---|---|---|
TimerCategory | timerCategory | |
WorkflowRuntime | runtime | |
Func<Task> | onTimerAsync | |
long | interval |
Properties
Disabled
Declarationpublic bool Disabled { get; }
Type | Description |
---|---|
bool |
Methods
RestartAsync()
Declarationpublic Task RestartAsync()
Type | Description |
---|---|
Task |
Enable()
Declarationpublic void Enable()
Disable()
Declarationpublic void Disable()
Dispose(bool)
Declarationprotected virtual void Dispose(bool disposing)
Type | Name | Description |
---|---|---|
bool | disposing |
Dispose()
Declarationpublic void Dispose()
Fields
_workflowRuntime
Declarationprotected readonly WorkflowRuntime _workflowRuntime
Type | Description |
---|---|
WorkflowRuntime |
TimerCategory
Declarationprotected readonly TimerCategory TimerCategory
Type | Description |
---|---|
TimerCategory |
Events
BeforeOnTimer
Declarationpublic event EventHandler<TimerInfoEventArgs> BeforeOnTimer
Type | Description |
---|---|
EventHandler<TimerInfoEventArgs> |
AfterOnTimer
Declarationpublic event EventHandler<TimerInfoEventArgs> AfterOnTimer
Type | Description |
---|---|
EventHandler<TimerInfoEventArgs> |