Table of Contents

Class TaskTimer

Namespace
Microsoft.ApplicationInsights.Extensibility.Implementation
Assembly
Microsoft.ApplicationInsights.dll
[Obsolete("This class will be removed in the next major version. Application Insights base library wouldn't provide this functionality any longer.")]
public class TaskTimer : IDisposable
Inheritance
TaskTimer
Implements
Inherited Members
Extension Methods

Constructors

TaskTimer()

public TaskTimer()

Fields

InfiniteTimeSpan

public static readonly TimeSpan InfiniteTimeSpan

Field Value

TimeSpan

Properties

Delay

public TimeSpan Delay { get; set; }

Property Value

TimeSpan

IsStarted

public bool IsStarted { get; }

Property Value

bool

Methods

Cancel()

public void Cancel()

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Start(Func<Task>)

public void Start(Func<Task> elapsed)

Parameters

elapsed Func<Task>