Members on this page
Meshline.Sdk
Meshline.Models.Protocol
RpcRequest Class
Represents a JSON-RPC request or notification.
public sealed record RpcRequest : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.RpcRequest>
Inheritance System.Object → ProtocolModel → RpcRequest
Implements System.IEquatable<RpcRequest>
Properties
RpcRequest.Id Property
The request identifier, or null for a notification that expects no response.
public string? Id { get; init; }
Property Value
RpcRequest.IsNotification Property
Whether this request omits an identifier and therefore expects no response.
public bool IsNotification { get; }
Property Value
RpcRequest.Jsonrpc Property
The JSON-RPC protocol version, which must be 2.0.
public string Jsonrpc { get; init; }
Property Value
RpcRequest.Method Property
The JSON-RPC method name.
public string Method { get; init; }
Property Value
RpcRequest.Params Property
Optional named JSON-RPC parameters, with JSON values cloned on assignment.
public System.Collections.Immutable.ImmutableDictionary<string,System.Text.Json.JsonElement>? Params { get; init; }
Property Value
System.Collections.Immutable.ImmutableDictionary<System.String,System.Text.Json.JsonElement>