Class DefaultTaskExecutor
Inheritance
System.Object
DefaultTaskExecutor
Implements
System.IDisposable
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class DefaultTaskExecutor : TaskExecutor, IDisposable
Constructors
DefaultTaskExecutor(TaskFactory, IPrincipalAccessor)
Declaration
public DefaultTaskExecutor(TaskFactory taskFactory, IPrincipalAccessor principalAccessor)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.TaskFactory |
taskFactory |
|
IPrincipalAccessor |
principalAccessor |
|
Methods
Cancel(Guid)
Declaration
public override Task Cancel(Guid taskId)
Parameters
Type |
Name |
Description |
System.Guid |
taskId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Dispose()
Declaration
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Start<TResult>(Func<CancellationToken, TResult>, TrackingToken, CancellationToken)
Declaration
public override Task<TResult> Start<TResult>(Func<CancellationToken, TResult> work, TrackingToken trackingToken, CancellationToken cancellationToken)
where TResult : new()
Parameters
Type |
Name |
Description |
System.Func<System.Threading.CancellationToken, TResult> |
work |
|
TrackingToken |
trackingToken |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<TResult> |
|
Type Parameters
Overrides
EPiServer.Async.TaskExecutor.Start<TResult>(System.Func<System.Threading.CancellationToken, TResult>, EPiServer.Async.TrackingToken, System.Threading.CancellationToken)
Stop()
Declaration
Implements
System.IDisposable
Extension Methods