public async Task Invoke(IBusForHandler bus, TransportMessage message, EndpointConfiguration.ReadOnly configuration) { var transportContext = new IncomingTransportContext(message, configuration); await InvokeTransport(transportContext, bus) .ConfigureAwait(false); // We assume that someone in the pipeline made logical message var logicalMessage = transportContext.Get<LogicalMessage>(); var logicalContext = new IncomingLogicalContext(logicalMessage, message, configuration); currentContext = logicalContext; await InvokeLogical(logicalContext, bus) .ConfigureAwait(false); }
public async Task Invoke(IBusForHandler bus, TransportMessage message, EndpointConfiguration.ReadOnly configuration) { var transportContext = new IncomingTransportContext(message, configuration); await InvokeTransport(transportContext, bus) .ConfigureAwait(false); // We assume that someone in the pipeline made logical message var logicalMessage = transportContext.Get <LogicalMessage>(); var logicalContext = new IncomingLogicalContext(logicalMessage, message, configuration); currentContext = logicalContext; await InvokeLogical(logicalContext, bus) .ConfigureAwait(false); }
public async Task Invoke(IBusForHandler bus, TransportMessage message, EndpointConfiguration.ReadOnly configuration) { executingTransportPipeline = new Queue<IIncomingTransportStep>(registeredTransportPipeline); var transportContext = new IncomingTransportContext(message, configuration); transportContext.SetChain(this); await InvokeTransport(transportContext, bus) .ConfigureAwait(false); // We assume that someone in the pipeline made logical message var logicalMessage = transportContext.Get<LogicalMessage>(); executingLogicalPipeline = new Queue<IIncomingLogicalStep>(registeredLogicalPipeline); var logicalContext = new IncomingLogicalContext(logicalMessage, message, configuration); logicalContext.SetChain(this); currentContext = logicalContext; await InvokeLogical(logicalContext, bus) .ConfigureAwait(false); }
public async Task Invoke(IBusForHandler bus, TransportMessage message, EndpointConfiguration.ReadOnly configuration) { executingTransportPipeline = new Queue <IIncomingTransportStep>(registeredTransportPipeline); var transportContext = new IncomingTransportContext(message, configuration); transportContext.SetChain(this); await InvokeTransport(transportContext, bus) .ConfigureAwait(false); // We assume that someone in the pipeline made logical message var logicalMessage = transportContext.Get <LogicalMessage>(); executingLogicalPipeline = new Queue <IIncomingLogicalStep>(registeredLogicalPipeline); var logicalContext = new IncomingLogicalContext(logicalMessage, message, configuration); logicalContext.SetChain(this); currentContext = logicalContext; await InvokeLogical(logicalContext, bus) .ConfigureAwait(false); }