Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WebApplicationFactoryClientOptions Class

Definition

Namespace:
Microsoft.AspNetCore.Mvc.Testing
Assembly:
Microsoft.AspNetCore.Mvc.Testing.dll
Package:
Microsoft.AspNetCore.Mvc.Testing v10.0.0
Package:
Microsoft.AspNetCore.Mvc.Testing v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Mvc.Testing v2.1.0
Package:
Microsoft.AspNetCore.Mvc.Testing v2.2.0
Package:
Microsoft.AspNetCore.Mvc.Testing v3.0.3
Package:
Microsoft.AspNetCore.Mvc.Testing v3.1.18
Package:
Microsoft.AspNetCore.Mvc.Testing v5.0.9
Package:
Microsoft.AspNetCore.Mvc.Testing v6.0.6
Package:
Microsoft.AspNetCore.Mvc.Testing v7.0.5
Package:
Microsoft.AspNetCore.Mvc.Testing v8.0.19
Package:
Microsoft.AspNetCore.Mvc.Testing v9.0.8
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs
Source:
WebApplicationFactoryClientOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The default options to use to when creating HttpClient instances by calling CreateClient(WebApplicationFactoryClientOptions).

public ref class WebApplicationFactoryClientOptions
public class WebApplicationFactoryClientOptions
type WebApplicationFactoryClientOptions = class
Public Class WebApplicationFactoryClientOptions
Inheritance
WebApplicationFactoryClientOptions

Constructors

Name Description
WebApplicationFactoryClientOptions()

Initializes a new instance of WebApplicationFactoryClientOptions.

Properties

Name Description
AllowAutoRedirect

Gets or sets whether or not HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should automatically follow redirect responses. The default is true.

BaseAddress

Gets or sets the base address of HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions). The default is http://localhost.

HandleCookies

Gets or sets whether HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should handle cookies. The default is true.

MaxAutomaticRedirections

Gets or sets the maximum number of redirect responses that HttpClient instances created by calling CreateClient(WebApplicationFactoryClientOptions) should follow. The default is 7.

Applies to


Feedback

Was this page helpful?