コード例 #1
0
        /// <inheritdoc/>
        public async Task StartAsync(CancellationToken token)
        {
            if (isRunning)
            {
                return;
            }

            await connection.StartAsync(token);

            isRunning = true;
        }
コード例 #2
0
        public async ValueTask StartAsync()
        {
            if (_isRunning)
            {
                return;
            }

            _connection.Dispatch += Dispatch;

            await _connection.StartAsync();

            _isRunning = true;
        }