/// <inheritdoc/> public async Task StartAsync(CancellationToken token) { if (isRunning) { return; } await connection.StartAsync(token); isRunning = true; }
public async ValueTask StartAsync() { if (_isRunning) { return; } _connection.Dispatch += Dispatch; await _connection.StartAsync(); _isRunning = true; }