C# Класс Microsoft.Azure.SignalR.RestClient

Показать файл Открыть проект

Открытые методы

Метод Описание
RestClient ( ) : System
RestClient ( IHttpClientFactory httpClientFactory, JsonSerializerSettings jsonSerializerSettings, bool enableMessageTracing ) : System
SendAsync ( Microsoft.Azure.SignalR.RestApiEndpoint api, HttpMethod httpMethod, string productInfo, string methodName = null, Array args = null, Func handleExpectedResponse = null, CancellationToken cancellationToken = default ) : Task
ThrowExceptionOnResponseFailureAsync ( HttpResponseMessage response ) : Task

Приватные методы

Метод Описание
AddTracingId ( Microsoft.Azure.SignalR.RestApiEndpoint api ) : void
BuildRequest ( Microsoft.Azure.SignalR.RestApiEndpoint api, HttpMethod httpMethod, string productInfo, string methodName = null, Array args = null ) : HttpRequestMessage
GenerateHttpRequest ( string url, IDictionary query, HttpMethod httpMethod, Microsoft.Azure.SignalR.PayloadMessage payload, string tokenString, string productInfo ) : HttpRequestMessage
GetUri ( string url, IDictionary query ) : Uri

Описание методов

RestClient() публичный Метод

public RestClient ( ) : System
Результат System

RestClient() публичный Метод

public RestClient ( IHttpClientFactory httpClientFactory, JsonSerializerSettings jsonSerializerSettings, bool enableMessageTracing ) : System
httpClientFactory IHttpClientFactory
jsonSerializerSettings JsonSerializerSettings
enableMessageTracing bool
Результат System

SendAsync() публичный Метод

public SendAsync ( Microsoft.Azure.SignalR.RestApiEndpoint api, HttpMethod httpMethod, string productInfo, string methodName = null, Array args = null, Func handleExpectedResponse = null, CancellationToken cancellationToken = default ) : Task
api Microsoft.Azure.SignalR.RestApiEndpoint
httpMethod HttpMethod
productInfo string
methodName string
args Array
handleExpectedResponse Func
cancellationToken CancellationToken
Результат Task

ThrowExceptionOnResponseFailureAsync() публичный Метод

public ThrowExceptionOnResponseFailureAsync ( HttpResponseMessage response ) : Task
response HttpResponseMessage
Результат Task