public unregisterSubscriber ( String caller_id, String topic, String caller_api ) : int | ||
caller_id | String | |
topic | String | |
caller_api | String | |
return | int |
/// <summary> /// Unregister an existing subscriber /// </summary> /// <param name="parms"></param> /// <param name="result"></param> public XmlRpcValue unregisterSubscriber(String caller_id, String topic, String caller_api) { XmlRpcValue res = new XmlRpcValue(); int ret = handler.unregisterSubscriber(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 subscriber /// </summary> /// <param name="parms"></param> /// <param name="result"></param> public void unregisterSubscriber([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("UNSUBSCRIBING: " + caller_id + " : " + caller_api); int ret = handler.unregisterSubscriber(caller_id, topic, caller_api); res.Set(0, ret); res.Set(1, "unregistered " + caller_id + "as provder of " + topic); //throw new Exception("NOT IMPLEMENTED YET!"); //XmlRpcValue args = new XmlRpcValue(this_node.Name, topic, XmlRpcManager.Instance.uri), // result = new XmlRpcValue(), // payload = new XmlRpcValue(); //master.execute("unregisterSubscriber", args, ref result, ref payload, false); //return true; }