Exemple #1
0
        void CloneAndSendLocal(TransportMessage messageToDispatch, Site destinationSite)
        {
            //todo - do we need to clone? check with Jonathan O
            messageToDispatch.Headers[Headers.DestinationSites] = destinationSite.Key;

            messageSender.Send(messageToDispatch, localAddress);
        }
Exemple #2
0
        void SendToSite(TransportMessage transportMessage, Site targetSite)
        {
            transportMessage.Headers[Headers.OriginatingSite] = GetDefaultAddressForThisSite();

            //todo - derive this from the message and the channeltype
            builder.Build<IdempotentChannelForwarder>()
                .Forward(transportMessage,targetSite);

            notifier.RaiseMessageForwarded("msmq", targetSite.Channel.Type, transportMessage);

            if (addressOfAuditStore != null && addressOfAuditStore != Address.Undefined)
                messageSender.Send(transportMessage, addressOfAuditStore);
        }
        void SendToSite(TransportMessage transportMessage, Site targetSite)
        {
            transportMessage.Headers[Headers.OriginatingSite] = GetCurrentSiteKey();

            //todo - derive this from the message and the channeltype
            builder.Build<IdempotentSender>()
                .Send(targetSite,transportMessage);

            notifier.RaiseMessageForwarded(settings.Receiver.GetType(), targetSite.ChannelType, transportMessage);

            if (!string.IsNullOrEmpty(addressOfAuditStore))
                messageSender.Send(transportMessage, addressOfAuditStore);
        }