Beispiel #1
0
        public async Task SendAsync(IConnection connection, CancellationToken cancellationToken = default)
        {
            connection.AddTags(Span2);

            var dispatch = _random.Next(200, 1000);

            using var dispatchSpan = Span2.EncodingSpan();
            //await Task.Delay(dispatch);

            using var encodingSpan = dispatchSpan.DispatchSpan(this);
            var encoding = _random.Next(200, 1000);
            //await Task.Delay(encoding);
        }