다음을 통해 공유


SocketsHttpHandlerBuilderExtensions.Configure 메서드

정의

오버로드

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

를 사용하여 IConfiguration 명명HttpClient된 에 대한 기본 SocketsHttpHandler 을 구성합니다.

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

명명된 HttpClient에 대한 기본 SocketsHttpHandler를 구성하는 데 사용되는 대리자를 추가합니다.

Configure(ISocketsHttpHandlerBuilder, IConfiguration)

Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs

를 사용하여 IConfiguration 명명HttpClient된 에 대한 기본 SocketsHttpHandler 을 구성합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ Configure(Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ builder, Microsoft::Extensions::Configuration::IConfiguration ^ configuration);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder Configure (this Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder builder, Microsoft.Extensions.Configuration.IConfiguration configuration);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Configure : Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder
<Extension()>
Public Function Configure (builder As ISocketsHttpHandlerBuilder, configuration As IConfiguration) As ISocketsHttpHandlerBuilder

매개 변수

configuration
IConfiguration

의 속성을 포함하는 구성입니다 SocketsHttpHandler.

반환

ISocketsHttpHandlerBuilder 처리기를 구성하는 데 사용할 수 있는 입니다.

특성

설명

, , Enumint또는 TimeSpan 형식boolSocketsHttpHandler 속성만 구문 분석됩니다.

IConfiguration 일치하지 않는 모든 속성은 무시됩니다.

적용 대상

Configure(ISocketsHttpHandlerBuilder, Action<SocketsHttpHandler,IServiceProvider>)

Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs
Source:
SocketsHttpHandlerBuilderExtensions.cs

명명된 HttpClient에 대한 기본 SocketsHttpHandler를 구성하는 데 사용되는 대리자를 추가합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ Configure(Microsoft::Extensions::DependencyInjection::ISocketsHttpHandlerBuilder ^ builder, Action<System::Net::Http::SocketsHttpHandler ^, IServiceProvider ^> ^ configure);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder Configure (this Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder builder, Action<System.Net.Http.SocketsHttpHandler,IServiceProvider> configure);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Configure : Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder * Action<System.Net.Http.SocketsHttpHandler, IServiceProvider> -> Microsoft.Extensions.DependencyInjection.ISocketsHttpHandlerBuilder
<Extension()>
Public Function Configure (builder As ISocketsHttpHandlerBuilder, configure As Action(Of SocketsHttpHandler, IServiceProvider)) As ISocketsHttpHandlerBuilder

매개 변수

configure
Action<SocketsHttpHandler,IServiceProvider>

를 수정하는 데 사용되는 대리자입니다 SocketsHttpHandler.

반환

ISocketsHttpHandlerBuilder 처리기를 구성하는 데 사용할 수 있는 입니다.

특성

적용 대상