コード例 #1
0
        public IMessage MutateIncoming(IMessage message)
        {
            var originatingSite = message.GetOriginatingSiteHeader();

            if (originatingSite != null)
            {
                if (messageReturns == null)
                    messageReturns = new Dictionary<string, GatewayReturnInfo>();

                messageReturns.Add(Bus.CurrentMessageContext.Id,
                                    new GatewayReturnInfo
                                           {
                                               From = originatingSite,
                                               ReplyToAddress = Bus.CurrentMessageContext.ReplyToAddress
                                           });
            }

            return message;
        }