View Source
Interface IBackgroundTaskRunner<T>
Defines a service managing a queue of tasks of type T
and running them in the background.
Assembly: Umbraco.Web.dll
Syntax
public interface IBackgroundTaskRunner<in T> : IDisposable, IRegisteredObject where T : class, IBackgroundTask
Type Parameters
Name |
Description |
T |
The type of the managed tasks.
|
Properties
View Source
IsCompleted
Declaration
bool IsCompleted { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
task |
|
View Source
TryAdd(T)
Declaration
Parameters
Type |
Name |
Description |
T |
task |
|
Returns
Type |
Description |
System.Boolean |
|