/** * 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); }
/** * 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); }