Class TaskTimer
- 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
Properties
Delay
public TimeSpan Delay { get; set; }
Property Value
IsStarted
public bool IsStarted { get; }
Property Value
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)