Condividi tramite


WebApplicationFactory<TEntryPoint>.CreateClient Metodo

Definizione

Overload

CreateClient()

Crea un'istanza di HttpClient che segue automaticamente i reindirizzamenti e gestisce i cookie.

CreateClient(WebApplicationFactoryClientOptions)

Crea un'istanza di HttpClient che segue automaticamente i reindirizzamenti e gestisce i cookie.

CreateClient()

Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs

Crea un'istanza di HttpClient che segue automaticamente i reindirizzamenti e gestisce i cookie.

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

Restituisce

Oggetto HttpClient.

Si applica a

CreateClient(WebApplicationFactoryClientOptions)

Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs
Origine:
WebApplicationFactory.cs

Crea un'istanza di HttpClient che segue automaticamente i reindirizzamenti e gestisce i cookie.

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

Parametri

Restituisce

Oggetto HttpClient.

Si applica a