• DXC Service
  • Products
    • Episerver CMS
    • Episerver Commerce
    • Episerver Campaign
    • Episerver Find
    • Episerver Personalization
      • Advance
      • Perform
      • Insight
      • Reach
      • Personalized Find
    • Episerver Social API
    • Episerver apps & integrations
    • Ektron CMS
  • Documentation
    • Get started
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Personalization
      • Insight
      • Social API
      • Service API
    • Developer guides
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Advance
      • Perform
      • Reach
      • Personalized Find
      • Insight
      • Tracking
      • Profile Store
      • Content Delivery API
      • Social API
      • Service API
      • Forms
      • MA connectors
    • UI feature list
    • Technical overview
    • System requirements
    • Installation
    • User guide
    • APIs and libraries
      • CMS
      • Commerce
      • Campaign
      • Find
      • Social
      • REST APIs
    • Video tutorials
    • Releases
    • Upgrading
      • CMS
      • Commerce
      • Find
      • Forms
      • Service API
      • Personalization
  • Blogs
  • Forum
  • Support
  • EMVPs
  • Register
  • Log in
All Content Documentation Forum User Guide Support Help Center Blogs Articles Releases Bug List SDK Documents
People
Home / Documentation /
  • Framework reference
  • EPiServer.Async
  • TaskExecutor
    • TaskExecutor Methods
    • TaskExecutor Events

TaskExecutor Class

Assembly: EPiServer.Framework (in EPiServer.Framework.dll) Version: 10.10.5.0 (10.10.5.0)

Syntax:

C#
public abstract class TaskExecutor

Manages execution of asynchronus work using Task API. If the task is associated with a TrackingToken then the task will be monitored by TaskMonitor and the outcome/status of the task can be retrieved from TaskMonitor.

Methods

Name Summary Status
Cancel Cancels the task with the specified identifier. public, abstract
OnTaskCompleted Call to raise TaskCompleted event. protected
OnTaskStarted Call to raise TaskStarted event. protected
OnTaskStarting Call to raise TaskStarting event. protected
Start(Action(CancellationToken)) Starts the specified cancelable work using an asynchronous task. public
Start(Action(CancellationToken), CancellationToken) Starts the specified work using an asynchronous task with the option to cancel the work prematurely. public
Start(Action(CancellationToken), TrackingToken) Starts the specified cancelable work using an asynchronous task and option to specify if outcome should be tracked. public
Start(Action(CancellationToken), TrackingToken, CancellationToken) Starts the specified work using an asynchronous task with the option to cancel the work prematurely and to specify if outcome should be tracked. public
Start(Action) Starts the specified work using an asynchronous task. public
Start(Action, TrackingToken) Starts the specified work using an asynchronous task and option to specify if outcome should be tracked. public
Start(TResult)(Func(CancellationToken, TResult), TrackingToken) Starts the specified cancelable work using an asynchronous task and option to specify if outcome should be tracked. public
Start(TResult)(Func(CancellationToken, TResult), TrackingToken, CancellationToken) Starts the specified work using an asynchronous task with the option to cancel the work prematurely and to specify if outcome should be tracked. public, abstract
Start(TResult)(Func(TResult), TrackingToken) Starts the specified work using an asynchronous task and option to specify if outcome should be tracked. public
TaskExecutor Constructor Initializes a new instance of the TaskExecutor class protected

Events

Name Summary Status
TaskCompleted Occurs when a task has completed regardless of status. public
TaskStarted Occurs when a task has started. public
TaskStarting Occurs when a new task is starting. public

Inheritance

  • System.Object
  • EPiServer.Async.TaskExecutor

About Episerver

  • episerver.com
  • Episerver certification
  • Job openings
  • License center
  • Privacy statement

Community

  • Blogs
  • Forums
  • Articles
  • Terms of use
  • EMVP program

Learning resources

  • Technical overview
  • Learning path Episerver CMS
  • Developer guides
  • User guide
  • Video tutorials
  • Episerver GitHub
  • Episerver Education

Contact

Episerver Support

See the Support page for contact information.

Feedback on Episerver World

If you’d like to give feedback about this site, please click here. Thank you very much!
© Episerver 2019 │ About Episerver World