예제 #1
0
    public void EndOperation(TelemetryScope <OperationEvent> operation, TelemetryResult telemetryResult)
    {
#if DEBUG
        _ = WriteTelemetryEventToOutputWindowAsync(operation.EndEvent, "Ended Operation");
#endif
        operation.End(telemetryResult);
    }
예제 #2
0
    public void EndUserTask(TelemetryScope <UserTaskEvent> userTask, TelemetryResult telemetryResult)
    {
#if DEBUG
        _ = WriteTelemetryEventToOutputWindowAsync(userTask.EndEvent, "Ended User Task");
#endif

        userTask.End(telemetryResult);
    }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
     //IL_0019: Unknown result type (might be due to invalid IL or missing references)
     if (!disposed && disposing)
     {
         base.Dispose(disposing);
         telemetryScope.End(base.Result, (string)null);
     }
     disposed = true;
 }