Class AcceptLanguageFilteringOptions
Represents the configurable options for filtering languages in AcceptLanguageFilteringMiddleware.
Inherited Members
Namespace: Coree.NETASP.Middleware.AcceptLanguageFiltering
Assembly: Coree.NETASP.dll
Syntax
public class AcceptLanguageFilteringOptions
Properties
| Edit this page View SourceBlacklist
Gets or sets an array of language codes that are not allowed to pass through the middleware.
Declaration
public string[]? Blacklist { get; set; }
Property Value
Type | Description |
---|---|
string[] | An array of strings, each representing a language code in the blacklist. |
ContinueOnDisallowed
Declaration
public bool ContinueOnDisallowed { get; set; }
Property Value
Type | Description |
---|---|
bool |
DisallowedFailureRating
Declaration
public int DisallowedFailureRating { get; set; }
Property Value
Type | Description |
---|---|
int |
DisallowedStatusCode
Declaration
public int DisallowedStatusCode { get; set; }
Property Value
Type | Description |
---|---|
int |
Whitelist
Gets or sets an array of language codes that are allowed to pass through the middleware.
Declaration
public string[]? Whitelist { get; set; }
Property Value
Type | Description |
---|---|
string[] | An array of strings, each representing a language code in the whitelist. |