Generated by DocFX

Class JsonClient

Inheritance
System.Object
JsonClient
Implements
IJsonClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VEDriversLite.NeblioAPI
Assembly: VEDriversLite.NeblioAPI.dll
Syntax
public class JsonClient : IJsonClient

Constructors

| Improve this Doc View Source

JsonClient(HttpClient)

Declaration
public JsonClient(HttpClient httpClient)
Parameters
Type Name Description
System.Net.Http.HttpClient httpClient

Properties

| Improve this Doc View Source

BaseUrl

Declaration
public string BaseUrl { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

JsonSerializerSettings

Declaration
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
Type Description
Newtonsoft.Json.JsonSerializerSettings
| Improve this Doc View Source

ReadResponseAsString

Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>)

Declaration
protected virtual async Task<JsonClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers)
Parameters
Type Name Description
System.Net.Http.HttpResponseMessage response
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> headers
Returns
Type Description
System.Threading.Tasks.Task<JsonClient.ObjectResponseResult<T>>
Type Parameters
Name Description
T
| Improve this Doc View Source

RpcAsync(RpcRequest)

Send a JSON-RPC call to a localhost neblio-Qt or nebliod node

Declaration
public Task<RpcResponse> RpcAsync(RpcRequest body)
Parameters
Type Name Description
RpcRequest body
Returns
Type Description
System.Threading.Tasks.Task<RpcResponse>

Object containing the JSON response from the Neblio node.

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

RpcAsync(RpcRequest, CancellationToken)

Send a JSON-RPC call to a localhost neblio-Qt or nebliod node

Declaration
public async Task<RpcResponse> RpcAsync(RpcRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
RpcRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<RpcResponse>

Object containing the JSON response from the Neblio node.

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

RpcIntAsync(RpcAdvancedRequest)

Send a JSON-RPC call to a localhost neblio-Qt or nebliod node

Declaration
public Task<RpcResponse> RpcIntAsync(RpcAdvancedRequest body)
Parameters
Type Name Description
RpcAdvancedRequest body
Returns
Type Description
System.Threading.Tasks.Task<RpcResponse>

Object containing the JSON response from the Neblio node.

Exceptions
Type Condition
ApiException

A server side error occurred.

| Improve this Doc View Source

RpcIntAsync(RpcAdvancedRequest, CancellationToken)

Send a JSON-RPC call to a localhost neblio-Qt or nebliod node

Declaration
public async Task<RpcResponse> RpcIntAsync(RpcAdvancedRequest body, CancellationToken cancellationToken)
Parameters
Type Name Description
RpcAdvancedRequest body
System.Threading.CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
System.Threading.Tasks.Task<RpcResponse>

Object containing the JSON response from the Neblio node.

Exceptions
Type Condition
ApiException

A server side error occurred.

Implements

IJsonClient