示例#1
0
        private async Task Send(CdpRequest message)
        {
            await Task.Run(() =>
            {
                if (_sendQueue.IsAddingCompleted)
                {
                    return;
                }

                _sendQueue.Add(message);
            });
        }
示例#2
0
 public async Task Execute(CdpRequest message, CancellationToken token)
 {
     await Send(message);
 }