abstractAn abstract Json RPC request with a return type. Inherit from this to add addtional aria2 requests.
Inherits from: JsonRpcRequest
JsonRpcRequest(string method, JsonRpcParameters parameters, string? id = null)Initializes a new instance of the JsonRpcRequest{T} class.
method (string): The name of the method to be called.
parameters (JsonRpcParameters): The parameters to be passed to the method.
id (string (optional, default: null)): The id of the request.A helper method to cast the response of a IAria2Client.SystemMulticall(JsonRpcRequest[]) to the correct type.
Signature: static T GetResult(object? value)
value (object):Throws:
ArgumentNullException
Helper method to determine if the response of a IAria2Client.SystemMulticall(JsonRpcRequest[]) is an error.
Signature: static bool IsError(object? value, [NotNullWhen(true)] out JsonRpcError? jsonRpcError)
value (object):
jsonRpcError (JsonRpcError):System.Type ReturnTypeThe type of the return value. This is always a .