Skip to main content

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

Syntax
public class WorkflowTimer : IDisposable

Constructors

WorkflowTimer(TimerCategory, WorkflowRuntime, Func<Task>, Func<Task<long?>>)

Declaration
public WorkflowTimer(TimerCategory timerCategory, WorkflowRuntime runtime, Func<Task> onTimerAsync, Func<Task<long?>> intervalGetterAsync)
Parameters
TypeNameDescription
TimerCategorytimerCategory
WorkflowRuntimeruntime
Func<Task>onTimerAsync
Func<Task<long?>>intervalGetterAsync

WorkflowTimer(TimerCategory, WorkflowRuntime, Func<Task>, long)

Declaration
public WorkflowTimer(TimerCategory timerCategory, WorkflowRuntime runtime, Func<Task> onTimerAsync, long interval)
Parameters
TypeNameDescription
TimerCategorytimerCategory
WorkflowRuntimeruntime
Func<Task>onTimerAsync
longinterval

Properties

Disabled

Declaration
public bool Disabled { get; }
Property value
TypeDescription
bool

Methods

RestartAsync()

Declaration
public Task RestartAsync()
Returns
TypeDescription
Task

Enable()

Declaration
public void Enable()

Disable()

Declaration
public void Disable()

Dispose(bool)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
booldisposing

Dispose()

Declaration
public void Dispose()

Fields

_workflowRuntime

Declaration
protected readonly WorkflowRuntime _workflowRuntime
Returns
TypeDescription
WorkflowRuntime

TimerCategory

Declaration
protected readonly TimerCategory TimerCategory
Returns
TypeDescription
TimerCategory

Events

BeforeOnTimer

Declaration
public event EventHandler<TimerInfoEventArgs> BeforeOnTimer
Returns
TypeDescription
EventHandler<TimerInfoEventArgs>

AfterOnTimer

Declaration
public event EventHandler<TimerInfoEventArgs> AfterOnTimer
Returns
TypeDescription
EventHandler<TimerInfoEventArgs>

Extension Methods