Compartir a través de


WebApplicationFactory<TEntryPoint>.CreateDefaultClient Método

Definición

Sobrecargas

CreateDefaultClient(DelegatingHandler[])

Crea una nueva instancia de que HttpClient se puede usar para enviar HttpRequestMessage al servidor. La dirección base de la HttpClient instancia se establecerá en http://localhost.

CreateDefaultClient(Uri, DelegatingHandler[])

Crea una nueva instancia de que HttpClient se puede usar para enviar HttpRequestMessage al servidor.

CreateDefaultClient(DelegatingHandler[])

Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs

Crea una nueva instancia de que HttpClient se puede usar para enviar HttpRequestMessage al servidor. La dirección base de la HttpClient instancia se establecerá en http://localhost.

public:
 System::Net::Http::HttpClient ^ CreateDefaultClient(... cli::array <System::Net::Http::DelegatingHandler ^> ^ handlers);
public System.Net.Http.HttpClient CreateDefaultClient (params System.Net.Http.DelegatingHandler[] handlers);
member this.CreateDefaultClient : System.Net.Http.DelegatingHandler[] -> System.Net.Http.HttpClient
Public Function CreateDefaultClient (ParamArray handlers As DelegatingHandler()) As HttpClient

Parámetros

handlers
DelegatingHandler[]

Lista de DelegatingHandler instancias que se van a configurar en .HttpClient

Devoluciones

HttpClient.

Se aplica a

CreateDefaultClient(Uri, DelegatingHandler[])

Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs
Source:
WebApplicationFactory.cs

Crea una nueva instancia de que HttpClient se puede usar para enviar HttpRequestMessage al servidor.

public:
 System::Net::Http::HttpClient ^ CreateDefaultClient(Uri ^ baseAddress, ... cli::array <System::Net::Http::DelegatingHandler ^> ^ handlers);
public System.Net.Http.HttpClient CreateDefaultClient (Uri baseAddress, params System.Net.Http.DelegatingHandler[] handlers);
member this.CreateDefaultClient : Uri * System.Net.Http.DelegatingHandler[] -> System.Net.Http.HttpClient
Public Function CreateDefaultClient (baseAddress As Uri, ParamArray handlers As DelegatingHandler()) As HttpClient

Parámetros

baseAddress
Uri

Dirección base de la HttpClient instancia.

handlers
DelegatingHandler[]

Lista de DelegatingHandler instancias que se van a configurar en .HttpClient

Devoluciones

HttpClient.

Se aplica a