BuildMaster SDK Reference
Version:

TimedExecuter.BackgroundTaskContext<TTaskId> Class

Contains context information for a background task.

Inheritance Hierarchy

  • object
    • Inedo.TimedExecuter.BackgroundTaskContext<TTaskId>

Syntax

public class BackgroundTaskContext<TTaskId> : Inedo.Diagnostics.ILogger, System.IDisposable

Events

Name Description
MessageLogged

Occurs when a message is logged.

Properties

Name Description
CancellationToken

Gets the task cancellation token.

Description

Gets or sets the task description.

Id

Gets the task ID.

LogContext

Gets the task log context.

StartTime

Gets the task start time.

Methods

Name Description
Log(Inedo.Diagnostics.MessageLevel logLevel, string message)

Writes the specified message to the corresponding log.

LogWithDetails(Inedo.Diagnostics.MessageLevel logLevel, string message, string details)

Writes the specified message to the corresponding log.