|
Window Framework for UI Toolkit v2.0.x
|
Pairs operation begin and exit even when the caller returns early or throws. More...


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


|
private |
|
private |
|
private |
|
private |