API Reference
Class
JsonRpcRequest
Represents an inbound JSON-RPC request.
Inheritance
- Object
- JsonRpcRequest
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property JsonRpcRequestEventArgs.Request
Accepted by parameters 1
- Constructor JsonRpcRequestEventArgs.JsonRpcRequestEventArgs
Methods
public Task RespondAsync(JsonValue? result, CancellationToken cancellationToken = default) #Returns:
TaskSends a successful response for this request.
Parameters
- result IntelligenceX.Json.JsonValue?
- The response result value.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public Task RespondErrorAsync(Int32 code, String message, JsonValue? data = null, CancellationToken cancellationToken = default) #Returns:
TaskSends an error response for this request.
Parameters
- code System.Int32
- JSON-RPC error code.
- message System.String
- Error message.
- data IntelligenceX.Json.JsonValue? = null
- Optional error data.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?