Aria2.JsonRpcClient

Aria2.JsonRpcClient Documentation - Home | Client | Requests | Models | Examples

JsonRpcRequest<T> abstract


Overview

An abstract Json RPC request with a return type. Inherit from this to add addtional aria2 requests.

Inherits from: JsonRpcRequest


Constructors

JsonRpcRequest(string method, JsonRpcParameters parameters, string? id = null)

Initializes a new instance of the JsonRpcRequest{T} class.

Parameters:


Methods

GetResult

A helper method to cast the response of a IAria2Client.SystemMulticall(JsonRpcRequest[]) to the correct type.

Signature: static T GetResult(object? value)

Parameters:

Throws:

ArgumentNullException


IsError

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)

Parameters:


Properties

System.Type ReturnType

The type of the return value. This is always a .


Top
© lantean-code - Generated on 2025-04-02