예제 #1
0
        public async Task Send(ConsumeContext <T> context, IPipe <ConsumeContext <T> > next)
        {
            await using IMessageScopeContext <T> scope = await _scopeProvider.GetScope(context).ConfigureAwait(false);

            await next.Send(scope.Context).ConfigureAwait(false);
        }
예제 #2
0
        public async Task Send(ConsumeContext <T> context, IPipe <ConsumeContext <T> > next)
        {
            using var scope = _scopeProvider.GetScope(context);

            await next.Send(scope.Context).ConfigureAwait(false);
        }