C# Class Tailspin.Surveys.Common.HttpClientExtensions

Mostrar archivo Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
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.

Method Details

SendRequestWithBearerTokenAsync() public static method

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
return Task