The background task plugin provides interfaces to define custom background task handlers, handler configurations based on the background task settings, and to allow handlers to access other services.
IBackgroundTaskHandler Implement the IBackgroundTaskHandler interface to create a custom .NET background task handler.
IBackgroundTaskHandlerConfiguration The IBackgroundTaskHandlerConfiguration interface is implemented by the object passed to the .NET handler Initialize method. It provides a handler with the parameters configured in the XML settings for background tasks.
IBackgroundTaskHandlerContext The IBackgroundTaskHandlerContext interface is implemented by the object passed to .NET handler Run method. It provides the handler with the context information, input data and an access to the various services (such as logging service).
BackgroundTaskException Describes the background task specific exception. This BackgroundTaskException is derived from the standard Exception, but contains an extra ErrorNumber property to ensure that the ErrorNumber which is used to validate if the background task must be retried is propagated correctly.