Share via


TelemetryScopeBase Class

Definition

An abstract base implementation of an ITelemetryScope.

public ref class TelemetryScopeBase abstract : IDisposable, Microsoft::VisualStudio::ArchitectureTools::Telemetry::ITelemetryScope
public abstract class TelemetryScopeBase : IDisposable, Microsoft.VisualStudio.ArchitectureTools.Telemetry.ITelemetryScope
type TelemetryScopeBase = class
    interface ITelemetryScope
    interface ITelemetryService
    interface IDisposable
Public MustInherit Class TelemetryScopeBase
Implements IDisposable, ITelemetryScope
Inheritance
TelemetryScopeBase
Implements

Constructors

TelemetryScopeBase(OperationEvent, TelemetryIdentifier, ITelemetryRecorder, ITelemetryService, ITelemetryScope)

Creates a TelemetryScopeBase.

Properties

Correlation

Correlation information for nested scopes.

EndEvent

The end event for this scope.

Parent

The immediate parent scope.

Result

The result for thois scope.

Root

The root parent scope.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean) System.Object.Dispose(System.Boolean)
PostFault(TelemetryIdentifier, String, Exception, IEnumerable<DataPoint>)

Reports a single fault event

PostOperation(TelemetryIdentifier, TelemetryResult, IEnumerable<DataPoint>)

Post a single operation event

PostUserTask(TelemetryIdentifier, TelemetryResult, IEnumerable<DataPoint>)

Post a single user task event

StartOperation(TelemetryIdentifier, IEnumerable<DataPoint>)

Start tracking user task by posting a OperationEvent at the beginning of user task work, and then return a TelemetryScope<T> object. When the user task finishes, call method Dispose() to post another OperationEvent for end point. Because the same event name is used by both start and end events, please don't use Start or End in event name.

StartUserTask(TelemetryIdentifier, IEnumerable<DataPoint>)

Start tracking user task by posting a UserTaskEvent at the beginning of user task work, and then return a TelemetryScope<T> object. When the user task finishes, call method Dispose() to post another UserTaskEvent for end point. Because the same event name is used by both start and end events, please don't use Start or End in event name.

Applies to