Skip to content

Class JsonRpcRequest

Namespace: Cephalon.Behaviors.Http.Bindings
Assembly: Cephalon.Behaviors.Http.dll

Represents a JSON-RPC 2.0 request envelope.

public sealed class JsonRpcRequest

objectJsonRpcRequest

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Gets or sets the request identifier.

[JsonPropertyName("id")]
public JsonElement? Id { get; set; }

JsonElement?

Gets or sets the JSON-RPC version string (must be “2.0”).

[JsonPropertyName("jsonrpc")]
public string? Jsonrpc { get; set; }

string?

Gets or sets the method name.

[JsonPropertyName("method")]
public string? Method { get; set; }

string?

Gets or sets the optional parameters.

[JsonPropertyName("params")]
public JsonElement? Params { get; set; }

JsonElement?