void AddReceiveContextPayloads(ReceiveContext receiveContext, Microsoft.Azure.ServiceBus.Core.IMessageReceiver messageReceiver) { receiveContext.GetOrAddPayload(() => messageReceiver); receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); receiveContext.GetOrAddPayload(() => _errorTransport); receiveContext.GetOrAddPayload(() => _deadLetterTransport); }
void AddReceiveContextPayloads(ReceiveContext receiveContext, IReceiverClient receiverClient, Message message) { MessageLockContext lockContext = new ReceiverClientMessageLockContext(receiverClient, message); receiveContext.GetOrAddPayload(() => lockContext); receiveContext.GetOrAddPayload(() => _context); }
void AddReceiveContextPayloads(ReceiveContext receiveContext, IMessageSession messageSession) { var sessionContext = new BrokeredMessageSessionContext(messageSession); receiveContext.GetOrAddPayload <IReceiverClient>(() => messageSession); receiveContext.GetOrAddPayload(() => sessionContext); receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); }
void AddReceiveContextPayloads(ReceiveContext receiveContext, IMessageSession messageSession, Message message) { MessageSessionContext sessionContext = new BrokeredMessageSessionContext(messageSession); MessageLockContext lockContext = new SessionMessageLockContext(messageSession, message); receiveContext.GetOrAddPayload(() => sessionContext); receiveContext.GetOrAddPayload(() => lockContext); receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); }
void AddReceiveContextPayloads(ReceiveContext receiveContext) { receiveContext.GetOrAddPayload(() => _messageReceiver); receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); }
TPayload PipeContext.GetOrAddPayload <TPayload>(PayloadFactory <TPayload> payloadFactory) { return(_context.GetOrAddPayload(payloadFactory)); }
public TPayload GetOrAddPayload <TPayload>(PayloadFactory <TPayload> payloadFactory) where TPayload : class { return(_receiveContext.GetOrAddPayload(payloadFactory)); }
void AddReceiveContextPayloads(ReceiveContext receiveContext, IReceiverClient receiverClient) { receiveContext.GetOrAddPayload(() => receiverClient); receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); }
void AddReceiveContextPayloads(ReceiveContext receiveContext) { receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>()); receiveContext.GetOrAddPayload(() => _errorTransport); receiveContext.GetOrAddPayload(() => _deadLetterTransport); }