public async Task DeleteSessionAsync() { if (_session != null && _session.SessionId != Guid.Empty) { using (var ts = new CancellationTokenSource(TimeSpan.FromSeconds(30))) { await _agentServer.DeleteAgentSessionAsync(_settings.PoolId, _session.SessionId, ts.Token); } } }