Compartilhar via


TelemetryScope<T> Class

Definition

This class is used to send data model events for an application work with duration and result. The event could be either UserTaskEvent or OperationEvent It sends one event at the beginning and the other one at the end of work.

generic <typename T>
 where T : OperationEventpublic ref class TelemetryScope sealed
public sealed class TelemetryScope<T> where T : OperationEvent
type TelemetryScope<'T (requires 'T :> OperationEvent)> = class
Public NotInheritable Class TelemetryScope(Of T)

Type Parameters

T

An event being or inheriting from OperationEvent, e.g., UserTaskEvent

Inheritance
TelemetryScope<T>

Properties

Correlation

Gets correlation of start event so user can correlate with this TelemetryScope.

EndEvent

Gets an event that will be posted at the end of work. It is used to add extra properties for current work. Please don't post this event directly, use method End(TelemetryResult, String) instead.

IsEnd

Gets a value indicating whether the scope is end or not.

Methods

End(TelemetryResult, String)

Marks the end of this work and post end event.

Applies to