private void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _telemetryManager?.StopEvent(_eventToEnd); } _disposedValue = true; } }