Documentation Center

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).

InputDataStreamThe stream with the input event data.
EventIdThe event ID.
ProgressIdThe progress ID.
CurrentAttemptThe current attempt.
EventMonitorGets the event monitor.
AuthenticationContext (internal)Deprecated proprietary authentication context.
MultiValueSeparatorThe multi value separator of the current project.
DateTimeFormatThe standard date time format.
WillRetryOnExceptionWill the background task retry on exception. The Handler should use it to check whether or not it should close the event logging of the background task.