コード例 #1
0
 void AddReceiveContextPayloads(ReceiveContext receiveContext, Microsoft.Azure.ServiceBus.Core.IMessageReceiver messageReceiver)
 {
     receiveContext.GetOrAddPayload(() => messageReceiver);
     receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>());
     receiveContext.GetOrAddPayload(() => _errorTransport);
     receiveContext.GetOrAddPayload(() => _deadLetterTransport);
 }
コード例 #2
0
        void AddReceiveContextPayloads(ReceiveContext receiveContext, IReceiverClient receiverClient, Message message)
        {
            MessageLockContext lockContext = new ReceiverClientMessageLockContext(receiverClient, message);

            receiveContext.GetOrAddPayload(() => lockContext);
            receiveContext.GetOrAddPayload(() => _context);
        }
コード例 #3
0
        void AddReceiveContextPayloads(ReceiveContext receiveContext, IMessageSession messageSession)
        {
            var sessionContext = new BrokeredMessageSessionContext(messageSession);

            receiveContext.GetOrAddPayload <IReceiverClient>(() => messageSession);
            receiveContext.GetOrAddPayload(() => sessionContext);
            receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>());
        }
コード例 #4
0
        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>());
        }
コード例 #5
0
ファイル: Receiver.cs プロジェクト: zz110/MassTransit
 void AddReceiveContextPayloads(ReceiveContext receiveContext)
 {
     receiveContext.GetOrAddPayload(() => _messageReceiver);
     receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>());
 }
コード例 #6
0
 TPayload PipeContext.GetOrAddPayload <TPayload>(PayloadFactory <TPayload> payloadFactory)
 {
     return(_context.GetOrAddPayload(payloadFactory));
 }
コード例 #7
0
 public TPayload GetOrAddPayload <TPayload>(PayloadFactory <TPayload> payloadFactory)
     where TPayload : class
 {
     return(_receiveContext.GetOrAddPayload(payloadFactory));
 }
コード例 #8
0
 void AddReceiveContextPayloads(ReceiveContext receiveContext, IReceiverClient receiverClient)
 {
     receiveContext.GetOrAddPayload(() => receiverClient);
     receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>());
 }
コード例 #9
0
ファイル: Receiver.cs プロジェクト: tamphthanh/MassTransit
 void AddReceiveContextPayloads(ReceiveContext receiveContext)
 {
     receiveContext.GetOrAddPayload(() => _context.GetPayload <NamespaceContext>());
     receiveContext.GetOrAddPayload(() => _errorTransport);
     receiveContext.GetOrAddPayload(() => _deadLetterTransport);
 }