public async Task<EventPipeSession> StartEventPipeSession(IEnumerable<EventPipeProvider> providers, TimeSpan timeout) { if (_useAsync) { CancellationTokenSource cancellation = new CancellationTokenSource(timeout); return await _client.StartEventPipeSessionAsync(providers, true, circularBufferMB: 256, cancellation.Token).ConfigureAwait(false); } else { return _client.StartEventPipeSession(providers); } }