November Happy Hour will be moved to Thursday December 5th.

Class DefaultTaskExecutor

Inheritance
System.Object
DefaultTaskExecutor
Implements
System.IDisposable
Namespace: EPiServer.Async.Internal
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
public void Dispose()

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
Name Description
TResult
Overrides
EPiServer.Async.TaskExecutor.Start<TResult>(System.Func<System.Threading.CancellationToken, TResult>, EPiServer.Async.TrackingToken, System.Threading.CancellationToken)

Stop()

Declaration
public void Stop()

Implements

System.IDisposable

Extension Methods