unregisterPublisher() public méthode

public unregisterPublisher ( String caller_id, String topic, String caller_api ) : int
caller_id String
topic String
caller_api String
Résultat int
Exemple #1
0
        /// <summary>
        /// Unregister an existing publisher
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public XmlRpcValue unregisterPublisher(String caller_id, String topic, String caller_api)
        {
            XmlRpcValue res = new XmlRpcValue();//XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            Console.WriteLine("UNPUBLISHING: " + caller_id + " : " + caller_api);

            int ret = handler.unregisterPublisher(caller_id, topic, caller_api);

            res.Set(0, ret);
            res.Set(1, "unregistered " + caller_id + "as provder of " + topic);
            return(res);
        }
        /// <summary>
        /// Unregister an existing publisher
        /// </summary>
        /// <param name="parms"></param>
        /// <param name="result"></param>
        public void unregisterPublisher([In][Out] IntPtr parms, [In][Out] IntPtr result)
        {
            XmlRpcValue res = XmlRpcValue.Create(ref result), parm = XmlRpcValue.Create(ref parms);

            String caller_id  = parm[0].GetString();
            String topic      = parm[1].GetString();
            String caller_api = parm[2].GetString();

            Console.WriteLine("UNPUBLISHING: " + caller_id + " : " + caller_api);

            int ret = handler.unregisterPublisher(caller_id, topic, caller_api);

            res.Set(0, ret);
            res.Set(1, "unregistered " + caller_id + "as provder of " + topic);
        }