WebApplicationFactoryClientOptions.MaxAutomaticRedirections 属性

定义

获取或设置通过调用CreateClient(WebApplicationFactoryClientOptions)创建的实例应遵循的最大重定向响应HttpClient数。 默认值为 7

public:
 property int MaxAutomaticRedirections { int get(); void set(int value); };
public int MaxAutomaticRedirections { get; set; }
member this.MaxAutomaticRedirections : int with get, set
Public Property MaxAutomaticRedirections As Integer

属性值

适用于