public override async Task Invoke(IIncomingPhysicalMessageContext context, Func <Task> next)
        {
            using (var session = new PipelineContextSession(context))
            {
                BusSession.SetCurrentPipelineContext(session);

                await next();
            }
        }
示例#2
0
 protected override Task OnStart(IMessageSession session)
 {
     BusSession.SetMessageSession(session);
     return(Task.CompletedTask);
 }