C# 클래스 Tailspin.Surveys.Web.Services.HttpClientService

This class wraps an instance of HttpClient configured with a handler that performs logging.
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps 1 사용 예제들

공개 메소드들

메소드 설명
GetHttpClient ( ) : HttpClient

This method exposes the configured HttpClient member.

HttpClientService ( IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IOptions options ) : System

This constructor configures the base address of the HttpClient instance member with the value of the WebApiUrl if this value is found in configuration. This constructor also configures the HttpClient instance member with an instance of HttpClientLogHandler which requires an IHttpContextAccessor and a ILoggerFactory.

메소드 상세

GetHttpClient() 공개 메소드

This method exposes the configured HttpClient member.
public GetHttpClient ( ) : HttpClient
리턴 System.Net.Http.HttpClient

HttpClientService() 공개 메소드

This constructor configures the base address of the HttpClient instance member with the value of the WebApiUrl if this value is found in configuration. This constructor also configures the HttpClient instance member with an instance of HttpClientLogHandler which requires an IHttpContextAccessor and a ILoggerFactory.
public HttpClientService ( IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IOptions options ) : System
contextAccessor IHttpContextAccessor
loggerFactory ILoggerFactory
options IOptions
리턴 System