Partager via


WebApplicationFactory<TEntryPoint>.CreateClient Méthode

Définition

Surcharges

CreateClient()

Crée un instance de HttpClient qui suit automatiquement les redirections et gère les cookies.

CreateClient(WebApplicationFactoryClientOptions)

Crée un instance de HttpClient qui suit automatiquement les redirections et gère les cookies.

CreateClient()

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

Crée un instance de HttpClient qui suit automatiquement les redirections et gère les cookies.

public:
 System::Net::Http::HttpClient ^ CreateClient();
public System.Net.Http.HttpClient CreateClient ();
member this.CreateClient : unit -> System.Net.Http.HttpClient
Public Function CreateClient () As HttpClient

Retours

L’HttpClientopérateur

S’applique à

CreateClient(WebApplicationFactoryClientOptions)

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

Crée un instance de HttpClient qui suit automatiquement les redirections et gère les cookies.

public:
 System::Net::Http::HttpClient ^ CreateClient(Microsoft::AspNetCore::Mvc::Testing::WebApplicationFactoryClientOptions ^ options);
public System.Net.Http.HttpClient CreateClient (Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryClientOptions options);
member this.CreateClient : Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactoryClientOptions -> System.Net.Http.HttpClient
Public Function CreateClient (options As WebApplicationFactoryClientOptions) As HttpClient

Paramètres

Retours

L’HttpClientopérateur

S’applique à