HttpMessageInvoker HttpMessageInvoker HttpMessageInvoker HttpMessageInvoker Constructors

定义

重载

HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler)

使用指定的 HttpMessageHandler 初始化 HttpMessageInvoker 类的实例。Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean)

使用指定的 HttpMessageHandler 初始化 HttpMessageInvoker 类的实例。Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler) HttpMessageInvoker(HttpMessageHandler)

使用指定的 HttpMessageHandler 初始化 HttpMessageInvoker 类的实例。Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

public:
 HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler)

参数

handler
HttpMessageHandler HttpMessageHandler HttpMessageHandler HttpMessageHandler

负责处理 HTTP 响应消息的 HttpMessageHandlerThe HttpMessageHandler responsible for processing the HTTP response messages.

HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean) HttpMessageInvoker(HttpMessageHandler, Boolean)

使用指定的 HttpMessageHandler 初始化 HttpMessageInvoker 类的实例。Initializes an instance of a HttpMessageInvoker class with a specific HttpMessageHandler.

public:
 HttpMessageInvoker(System::Net::Http::HttpMessageHandler ^ handler, bool disposeHandler);
public HttpMessageInvoker (System.Net.Http.HttpMessageHandler handler, bool disposeHandler);
new System.Net.Http.HttpMessageInvoker : System.Net.Http.HttpMessageHandler * bool -> System.Net.Http.HttpMessageInvoker
Public Sub New (handler As HttpMessageHandler, disposeHandler As Boolean)

参数

handler
HttpMessageHandler HttpMessageHandler HttpMessageHandler HttpMessageHandler

负责处理 HTTP 响应消息的 HttpMessageHandlerThe HttpMessageHandler responsible for processing the HTTP response messages.

disposeHandler
Boolean Boolean Boolean Boolean

如果内部处理程序应由 Dispose() 处置,则为 true,如果希望重新使用内部处理程序,则为 falsetrue if the inner handler should be disposed of by Dispose(), false if you intend to reuse the inner handler.

适用于