Ejemplo n.º 1
0
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--


        #endregion

        #region --Misc Methods (Protected)--
        protected override void addContent(XElement node, XNamespace ns)
        {
            XElement retractNode = new XElement(ns + "retract");

            retractNode.Add(new XAttribute("node", NODE_NAME));
            AbstractPubSubItem item = getPubSubItem();

            if (item != null)
            {
                retractNode.Add(item.toXElement(ns));
            }
            node.Add(retractNode);
        }
Ejemplo n.º 2
0
        //--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\
        #region --Set-, Get- Methods--


        #endregion
        //--------------------------------------------------------Misc Methods:---------------------------------------------------------------\\
        #region --Misc Methods (Public)--


        #endregion

        #region --Misc Methods (Private)--


        #endregion

        #region --Misc Methods (Protected)--
        protected override void addContent(XElement node, XNamespace ns)
        {
            XElement publishNode = new XElement(ns + "publish");

            publishNode.Add(new XAttribute("node", NODE_NAME));
            AbstractPubSubItem item = getPubSubItem();

            if (item != null)
            {
                publishNode.Add(item.toXElement(ns));
            }
            node.Add(publishNode);

            PubSubPublishOptions options = getPublishOptions();

            if (options != null)
            {
                node.Add(options.toXElement(ns));
            }
        }