From 61e34f05cb1e7209f8ac2cefa95b03e98d3b45fb Mon Sep 17 00:00:00 2001 From: kuznetsov_v Date: Tue, 11 Jun 2024 10:59:51 +0500 Subject: [PATCH] feat: shipped config + SingleJsonRpcResult missing --- .../Models/Single/SingleJsonRpcResult.cs | 75 ++++++++ .../PublicAPI.Shipped.txt | 160 +++++++++++++----- 2 files changed, 189 insertions(+), 46 deletions(-) create mode 100644 src/Tochka.JsonRpc.Client/Models/Single/SingleJsonRpcResult.cs diff --git a/src/Tochka.JsonRpc.Client/Models/Single/SingleJsonRpcResult.cs b/src/Tochka.JsonRpc.Client/Models/Single/SingleJsonRpcResult.cs new file mode 100644 index 0000000..d232b69 --- /dev/null +++ b/src/Tochka.JsonRpc.Client/Models/Single/SingleJsonRpcResult.cs @@ -0,0 +1,75 @@ +using System.Text.Json; +using JetBrains.Annotations; +using Tochka.JsonRpc.Common.Models.Response; +using Tochka.JsonRpc.Common.Models.Response.Untyped; + +namespace Tochka.JsonRpc.Client.Models.Single; + +/// +[PublicAPI] +public sealed class SingleJsonRpcResult : SingleJsonRpcResult, ISingleJsonRpcResult +{ + /// + public SingleJsonRpcResult(IJsonRpcCallContext context, JsonSerializerOptions headersJsonSerializerOptions, + JsonSerializerOptions dataJsonSerializerOptions) : base(context, headersJsonSerializerOptions, dataJsonSerializerOptions) + { } + + /// + public TResponse? GetResponseOrThrow() => Advanced.GetResponseOrThrow(); + + /// + public TResponse? AsResponse() => Advanced.AsResponse(); +} + + +/// +[PublicAPI] +public class SingleJsonRpcResult : ISingleJsonRpcResult +{ + /// + /// Context with all information about request and response + /// + protected readonly IJsonRpcCallContext Context; + + /// + /// JsonSerializerOptions used to process JSON-RPC root object. Does not affect JSON-RPC params/result/error.data + /// + protected readonly JsonSerializerOptions HeadersJsonSerializerOptions; + + /// + /// JsonSerializerOptions used to process JSON-RPC params/result/error.data. Does not affect JSON-RPC root object + /// + protected readonly JsonSerializerOptions DataJsonSerializerOptions; + + /// + /// Response if call was request + /// + protected readonly IResponse? Response; + + /// + public ISingleJsonRpcResultAdvanced Advanced { get; init; } + + /// + public SingleJsonRpcResult(IJsonRpcCallContext context, JsonSerializerOptions headersJsonSerializerOptions, JsonSerializerOptions dataJsonSerializerOptions) + { + Context = context; + if (context.BatchResponse != null) + { + throw new ArgumentOutOfRangeException(nameof(context), "Expected single response"); + } + + Response = context.SingleResponse; + HeadersJsonSerializerOptions = headersJsonSerializerOptions; + DataJsonSerializerOptions = dataJsonSerializerOptions; + Advanced = new SingleJsonSingleJsonRpcResultAdvanced(Context, HeadersJsonSerializerOptions, DataJsonSerializerOptions); + } + + /// + public TResponse? GetResponseOrThrow() => Advanced.GetResponseOrThrow(); + + /// + public TResponse? AsResponse() => Advanced.AsResponse(); + + /// + public bool HasError() => Response is UntypedErrorResponse; +} diff --git a/src/Tochka.JsonRpc.Client/PublicAPI.Shipped.txt b/src/Tochka.JsonRpc.Client/PublicAPI.Shipped.txt index 50053af..6e34022 100644 --- a/src/Tochka.JsonRpc.Client/PublicAPI.Shipped.txt +++ b/src/Tochka.JsonRpc.Client/PublicAPI.Shipped.txt @@ -13,18 +13,10 @@ Tochka.JsonRpc.Client.IJsonRpcClient.Send(string! requestUrl, System.Collections Tochka.JsonRpc.Client.IJsonRpcClient.Send(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.ICall! call, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.Send(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.Send(Tochka.JsonRpc.Common.Models.Request.ICall! call, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.SendNotification(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.SendNotification(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.SendNotification(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Notification! notification, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.IJsonRpcClient.SendNotification(Tochka.JsonRpc.Common.Models.Request.Notification! notification, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase Tochka.JsonRpc.Client.JsonRpcClientBase.Client.get -> System.Net.Http.HttpClient! Tochka.JsonRpc.Client.JsonRpcClientBase.Log.get -> Microsoft.Extensions.Logging.ILogger! @@ -33,32 +25,9 @@ Tochka.JsonRpc.Client.JsonRpcClientBase.Send(string! requestUrl, System.Collecti Tochka.JsonRpc.Client.JsonRpcClientBase.Send(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.ICall! call, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase.Send(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase.Send(Tochka.JsonRpc.Common.Models.Request.ICall! call, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase.SendNotification(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase.SendNotification(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! Tochka.JsonRpc.Client.JsonRpcClientBase.SendNotification(Tochka.JsonRpc.Common.Models.Request.Notification! notification, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.AsAnyError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.AsErrorWithExceptionInfo(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.AsTypedError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.BatchJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? -Tochka.JsonRpc.Client.Models.BatchJsonRpcResult.HasError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> bool -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.AsAnyError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.AsErrorWithExceptionInfo(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.AsTypedError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? -Tochka.JsonRpc.Client.Models.IBatchJsonRpcResult.HasError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> bool Tochka.JsonRpc.Client.Models.IJsonRpcCallContext Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.BatchCall.get -> System.Collections.Generic.ICollection? Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.BatchResponse.get -> System.Collections.Generic.List? @@ -78,13 +47,6 @@ Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.WithHttpResponse(System.Net.Htt Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.WithRequestUrl(string? requestUrl) -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.WithSingle(Tochka.JsonRpc.Common.Models.Request.Untyped.IUntypedCall! singleCall) -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! Tochka.JsonRpc.Client.Models.IJsonRpcCallContext.WithSingleResponse(Tochka.JsonRpc.Common.Models.Response.IResponse! singleResponse) -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.AsAnyError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.AsErrorWithExceptionInfo() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.AsResponse() -> TResponse? -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.AsTypedError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.GetResponseOrThrow() -> TResponse? -Tochka.JsonRpc.Client.Models.ISingleJsonRpcResult.HasError() -> bool Tochka.JsonRpc.Client.Models.JsonRpcCallContext Tochka.JsonRpc.Client.Models.JsonRpcCallContext.BatchCall.get -> System.Collections.Generic.ICollection? Tochka.JsonRpc.Client.Models.JsonRpcCallContext.BatchResponse.get -> System.Collections.Generic.List? @@ -107,14 +69,6 @@ Tochka.JsonRpc.Client.Models.JsonRpcCallContext.WithSingleResponse(Tochka.JsonRp Tochka.JsonRpc.Client.Models.JsonRpcException Tochka.JsonRpc.Client.Models.JsonRpcException.Context.get -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! Tochka.JsonRpc.Client.Models.JsonRpcException.JsonRpcException(string! message, Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context) -> void -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.AsAnyError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.AsErrorWithExceptionInfo() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.AsResponse() -> TResponse? -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.AsTypedError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.GetResponseOrThrow() -> TResponse? -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.HasError() -> bool -Tochka.JsonRpc.Client.Models.SingleJsonRpcResult.SingleJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void Tochka.JsonRpc.Client.Services.IJsonRpcIdGenerator Tochka.JsonRpc.Client.Services.IJsonRpcIdGenerator.GenerateId() -> Tochka.JsonRpc.Common.Models.Id.IRpcId! Tochka.JsonRpc.Client.Services.JsonRpcIdGenerator @@ -133,3 +87,117 @@ Tochka.JsonRpc.Client.HttpMessageHandlers.JsonRpcRequestLoggingHandler Tochka.JsonRpc.Client.HttpMessageHandlers.JsonRpcRequestLoggingHandler.JsonRpcRequestLoggingHandler(Microsoft.Extensions.Logging.ILogger! logger) -> void static Tochka.JsonRpc.Client.Extensions.WithJsonRpcRequestLogging(this Microsoft.Extensions.DependencyInjection.IHttpClientBuilder! httpClientBuilder) -> Microsoft.Extensions.DependencyInjection.IHttpClientBuilder! Tochka.JsonRpc.Client.JsonRpcClientBase.JsonRpcClientBase(System.Net.Http.HttpClient! client, Tochka.JsonRpc.Client.Services.IJsonRpcIdGenerator! jsonRpcIdGenerator, Microsoft.Extensions.Logging.ILogger! log) -> void +readonly Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.Context -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! +readonly Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.DataJsonSerializerOptions -> System.Text.Json.JsonSerializerOptions! +readonly Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.HeadersJsonSerializerOptions -> System.Text.Json.JsonSerializerOptions! +readonly Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.Responses -> System.Collections.Generic.Dictionary! +readonly Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.Context -> Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! +readonly Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.DataJsonSerializerOptions -> System.Text.Json.JsonSerializerOptions! +readonly Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.HeadersJsonSerializerOptions -> System.Text.Json.JsonSerializerOptions! +readonly Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.Response -> Tochka.JsonRpc.Common.Models.Response.IResponse? +static Tochka.JsonRpc.Client.Models.Batch.BatchExtensions.TryGetResponse(this System.Collections.Generic.IReadOnlyDictionary! responses, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, out Tochka.JsonRpc.Common.Models.Response.IResponse? response) -> bool +Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task?>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task?>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.IJsonRpcClient.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(string! requestUrl, System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task?>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendBatch(System.Collections.Generic.IEnumerable! calls, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task?>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task!>! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(string! requestUrl, Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Id.IRpcId! id, string! method, TParams? parameters, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.JsonRpcClientBase.SendRequest(Tochka.JsonRpc.Common.Models.Request.Request! request, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task! +Tochka.JsonRpc.Client.Models.Batch.BatchExtensions +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.BatchJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.BatchJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResult.HasError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> bool +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.AsAnyError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.AsErrorWithExceptionInfo(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.AsTypedError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.BatchJsonRpcResultAdvanced(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Collections.Generic.Dictionary! responses, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void +Tochka.JsonRpc.Client.Models.Batch.BatchJsonRpcResultAdvanced.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.HasError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> bool +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResult.HasError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> bool +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced.AsAnyError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced.AsErrorWithExceptionInfo(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced.AsResponse(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced.AsTypedError(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Batch.IBatchJsonRpcResultAdvanced.GetResponseOrThrow(Tochka.JsonRpc.Common.Models.Id.IRpcId! id) -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.HasError() -> bool +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResult.HasError() -> bool +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced.AsAnyError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced.AsErrorWithExceptionInfo() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced.AsTypedError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.SingleJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.Advanced.get -> Tochka.JsonRpc.Client.Models.Single.ISingleJsonRpcResultAdvanced! +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.Advanced.init -> void +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.HasError() -> bool +Tochka.JsonRpc.Client.Models.Single.SingleJsonRpcResult.SingleJsonRpcResult(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.AsAnyError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.AsErrorWithExceptionInfo() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.AsResponse() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.AsTypedError() -> Tochka.JsonRpc.Common.Models.Response.Errors.Error? +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.GetResponseOrThrow() -> TResponse? +Tochka.JsonRpc.Client.Models.Single.SingleJsonSingleJsonRpcResultAdvanced.SingleJsonSingleJsonRpcResultAdvanced(Tochka.JsonRpc.Client.Models.IJsonRpcCallContext! context, System.Text.Json.JsonSerializerOptions! headersJsonSerializerOptions, System.Text.Json.JsonSerializerOptions! dataJsonSerializerOptions) -> void \ No newline at end of file