/// <summary> /// Broadcasts the <paramref name="xmlCacheEvent" /> /// </summary> /// <param name="xmlCacheEvent"><see cref="T:TcmCDService.CacheTypes.XmlCacheEvent" /></param> private void BroadcastEvent(XmlCacheEvent xmlCacheEvent) { if (mSession != null && mProducer != null) { ITextMessage message = mSession.CreateTextMessage(xmlCacheEvent.ToXml()); message.Properties.SetString("Client", mIdentifier); mProducer.Send(message); } }
/// <summary> /// Broadcasts the <paramref name="xmlCacheEvent" /> /// </summary> /// <param name="xmlCacheEvent"><see cref="T:TcmCDService.CacheTypes.XmlCacheEvent" /></param> private void BroadcastEvent(XmlCacheEvent xmlCacheEvent) { ZeroMQMessage message = new ZeroMQMessage() { Topic = mTopic, Client = mIdentifier, Content = xmlCacheEvent.ToXml() }; mQueue.Add(message); }
/// <summary> /// Broadcasts the <paramref name="xmlCacheEvent" /> /// </summary> /// <param name="xmlCacheEvent"><see cref="T:TcmCDService.CacheTypes.XmlCacheEvent" /></param> private void BroadcastEvent(XmlCacheEvent xmlCacheEvent) { ZeroMQMessage message = new ZeroMQMessage() { Topic = mTopic, Client = mIdentifier, Content = xmlCacheEvent.ToXml() }; mQueue.Add(message); }