View Source
Class LatchedBackgroundTaskBase
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public abstract class LatchedBackgroundTaskBase : DisposableObjectSlim, IBackgroundTask, IDisposable
Constructors
View Source
LatchedBackgroundTaskBase()
Declaration
protected LatchedBackgroundTaskBase()
Properties
View Source
IsAsync
Indicates whether the background task can run asynchronously.
Declaration
public abstract bool IsAsync { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsLatched
Declaration
public bool IsLatched { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Latch
Declaration
public Task Latch { get; }
Property Value
Type |
Description |
System.Threading.Tasks.Task |
|
View Source
RunsOnShutdown
Declaration
public virtual bool RunsOnShutdown { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
DisposeResources()
Declaration
protected override void DisposeResources()
View Source
Release()
Declaration
View Source
Reset()
Declaration
View Source
Run()
Implements IBackgroundTask.Run().
Declaration
public virtual void Run()
View Source
RunAsync(CancellationToken)
Implements IBackgroundTask.RunAsync().
Declaration
public virtual Task RunAsync(CancellationToken token)
Parameters
Type |
Name |
Description |
System.Threading.CancellationToken |
token |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|