Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class DisposableStopwatch

Inheritance

↳ object

    ↳ DisposableStopwatch

Implements

IDisposable

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Utils

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class DisposableStopwatch : IDisposable

Constructors

DisposableStopwatch(Action<DisposableStopwatchArgs>)

Declaration
public DisposableStopwatch(Action<DisposableStopwatchArgs> action = null)
Parameters
TypeNameDescription
Action<DisposableStopwatchArgs>action

Methods

AddAction(Action<DisposableStopwatchArgs>)

Add action which invoke on dispose. Removes others if they were.

Declaration
public void AddAction(Action<DisposableStopwatchArgs> action)
Parameters
TypeNameDescription
Action<DisposableStopwatchArgs>action

SetAction(Action<DisposableStopwatchArgs>)

Set action which invoke on dispose. Removes others if they were.

Declaration
public void SetAction(Action<DisposableStopwatchArgs> action)
Parameters
TypeNameDescription
Action<DisposableStopwatchArgs>action

Dispose()

Declaration
public void Dispose()

Extension Methods