///<summary>Invoke a method on a named handler.</summary> ///<param name="objectName"><c>String</c> The name of the handler.</param> ///<param name="methodName"><c>String</c> The name of the method to invoke on the handler.</param> ///<param name="parameters"><c>IList</c> The parameters to invoke the method with.</param> /// <seealso cref="XmlRpcSystemObject.Invoke"/> public Object Invoke(String objectName, String methodName, IList parameters) { Object target = this._handlers[objectName]; if (target == null) { throw new XmlRpcException(XmlRpcErrorCodes.SERVER_ERROR_METHOD, string.Format("{0}: Object {1} not found", XmlRpcErrorCodes.SERVER_ERROR_METHOD_MSG, objectName)); } return(XmlRpcSystemObject.Invoke(target, methodName, parameters)); }
///<summary>Invoke a method on a named handler.</summary> ///<param name="objectName"><c>String</c> The name of the handler.</param> ///<param name="methodName"><c>String</c> The name of the method to invoke on the handler.</param> ///<param name="parameters"><c>IList</c> The parameters to invoke the method with.</param> /// <seealso cref="XmlRpcSystemObject.Invoke"/> public Object Invoke(String objectName, String methodName, IList parameters) { Object target = _handlers[objectName]; if (target == null) { throw new XmlRpcException(XmlRpcErrorCodes.SERVER_ERROR_METHOD, XmlRpcErrorCodes.SERVER_ERROR_METHOD_MSG + ": Object " + objectName + " not found"); } return(XmlRpcSystemObject.Invoke(target, methodName, parameters)); }