Example #1
0
 /**
  * Asynchronously Invokes the method on the XML-RPC service.
  */
 public void HandleRpc(ISender caller, string method, IList args, object rs) {
   object[] arg_array = new object[args.Count];
   args.CopyTo(arg_array, 0);
   XmlRpcCallState state = new XmlRpcCallState();
   state.MethodName = method;
   state.MethodArgs = arg_array;
   state.RequestState = rs;
   ThreadPool.QueueUserWorkItem(new WaitCallback(BrunetRpc2XmlRpc), state);
 }
Example #2
0
 /**
  * Asynchronously Invokes the method on the XML-RPC service.
  */
 public void HandleRpc(ISender caller, string method, IList args, object rs) {
   object[] arg_array = new object[args.Count];
   args.CopyTo(arg_array, 0);
   XmlRpcCallState state = new XmlRpcCallState(_url, method, arg_array, rs);
   ThreadPool.QueueUserWorkItem(new WaitCallback(BrunetRpc2XmlRpc), state);
 }