// for use with the enum, which may not cover 100% of available commands when a new release is made available. public string RunCommand(ZendRPCCommand commandName, object[] _params, string identifier = null) { return(RunCommand(new RPCData(identifier, Utils.GetDescription(commandName), _params))); }
public RPCData(string id, ZendRPCCommand commandName, object[] parameters) { this.id = string.IsNullOrEmpty(id) ? Guid.NewGuid().ToString() : id; this.method = commandName.GetDescription(); this._params = parameters; }