ClientHandler.Send(HttpRequestMessage, CancellationToken) 方法

定义

不支持此同步方法,因为并行运行多个测试时存在线程池耗尽的风险。

protected override System.Net.Http.HttpResponseMessage Send (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
override this.Send : System.Net.Http.HttpRequestMessage * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Protected Overrides Function Send (request As HttpRequestMessage, cancellationToken As CancellationToken) As HttpResponseMessage

参数

返回

例外

无条件引发。

注解

请改用此方法 SendAsync(HttpRequestMessage, CancellationToken)的异步版本 。

适用于