C# 클래스 Tailspin.Surveys.Common.HttpClientExtensions

파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps

공개 메소드들

메소드 설명
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