C# Класс Tailspin.Surveys.Common.HttpClientExtensions

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

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

Метод Описание
SendRequestWithBearerTokenAsync ( this httpClient, HttpMethod method, string path, object requestBody, string accessToken, CancellationToken ct ) : Task

This extension method for HttpClient provides a convenient overload that accepts a string accessToken to be used as Bearer authentication.

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

SendRequestWithBearerTokenAsync() публичный статический Метод

This extension method for HttpClient provides a convenient overload that accepts a string accessToken to be used as Bearer authentication.
public static SendRequestWithBearerTokenAsync ( this httpClient, HttpMethod method, string path, object requestBody, string accessToken, CancellationToken ct ) : Task
httpClient this The instance
method HttpMethod The
path string The path to the requested target
requestBody object The body of the request
accessToken string The access token to be used as Bearer authentication
ct System.Threading.CancellationToken A
Результат Task