Class TaskEventArgs<T>
Provides arguments for task runner events.
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Web.Scheduling
Assembly: Umbraco.Web.dll
Syntax
public class TaskEventArgs<T> : EventArgs where T : IBackgroundTask
Type Parameters
Name | Description |
---|---|
T | The type of the task. |
Constructors
View SourceTaskEventArgs(T)
Initializes a new instance of the TaskEventArgs<T> class with a task.
Declaration
public TaskEventArgs(T task)
Parameters
Type | Name | Description |
---|---|---|
T | task | The task. |
TaskEventArgs(T, Exception)
Initializes a new instance of the TaskEventArgs<T> class with a task and an exception.
Declaration
public TaskEventArgs(T task, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
T | task | The task. |
System.Exception | exception | An exception. |
Properties
View SourceException
Gets or sets the exception.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
Task
Gets or sets the task.
Declaration
public T Task { get; }
Property Value
Type | Description |
---|---|
T |