public async Task Send(PublishContext <T> context)
        {
            context.MessageId = MessageId;
            context.SetScheduledEnqueueTime(_scheduledTime);

            if (_pipe != null)
            {
                await _pipe.Send(context).ConfigureAwait(false);
            }

            if (_sendPipe != null)
            {
                await _sendPipe.Send(context).ConfigureAwait(false);
            }
        }
예제 #2
0
        public async Task Send(PublishContext <T> context)
        {
            _context = context;

            context.SetScheduledEnqueueTime(_scheduledTime);

            if (_pipe.IsNotEmpty())
            {
                await _pipe.Send(context).ConfigureAwait(false);
            }

            if (_sendPipe.IsNotEmpty())
            {
                await _sendPipe.Send(context).ConfigureAwait(false);
            }
        }