C# Класс Spring.Globalization.Resolvers.RequestCultureResolver

Culture resolver that uses request headers to determine culture. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.
Note: This culture resolver cannot be used to change the culture because request headers cannot be modified. In order to change the culture when using this culture resolver user has to change language settings in the web browser.
Наследование: Spring.Globalization.Resolvers.DefaultWebCultureResolver
Показать файл Открыть проект

Открытые методы

Метод Описание
ResolveCulture ( ) : CultureInfo

Tries to determine culture from the request headers. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.

SetCulture ( CultureInfo culture ) : void

Not supported for this resolver implementation

Описание методов

ResolveCulture() публичный Метод

Tries to determine culture from the request headers. If no languages are specified in the request headers, it returns default culture specifed, and if no default culture was specifed it returns current culture for the executing server thread.
public ResolveCulture ( ) : CultureInfo
Результат System.Globalization.CultureInfo

SetCulture() публичный Метод

Not supported for this resolver implementation
public SetCulture ( CultureInfo culture ) : void
culture System.Globalization.CultureInfo The new culture or null to clear the culture.
Результат void