Window Framework for UI Toolkit v2.0.x
GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope Struct Reference

Pairs operation begin and exit even when the caller returns early or throws. More...

Inheritance diagram for GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope:
Collaboration diagram for GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope:

Public Member Functions

void Dispose ()
 Emits the paired exit diagnostic for a nondefault measured scope.

Private Attributes

readonly TelemetryChannel _channel
readonly string _operation
readonly double _startedAt
readonly string _target

Detailed Description

Pairs operation begin and exit even when the caller returns early or throws.

End means the call exited, not that it succeeded. Callers emit explicit result/rejection records where appropriate. Never retain this scope across threads or asynchronous continuations.

Member Function Documentation

◆ Dispose()

void GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope.Dispose ( )
inline

Emits the paired exit diagnostic for a nondefault measured scope.

Exit is not success. This readonly struct does not track prior Dispose calls; copied/repeated disposal can emit repeated exits. Use one lexical using lifetime.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ _channel

readonly TelemetryChannel GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope._channel
private

◆ _operation

readonly string GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope._operation
private

◆ _startedAt

readonly double GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope._startedAt
private

◆ _target

readonly string GWG.WindowFramework.Telemetry.WindowFrameTelemetry.OperationScope._target
private