C# 클래스 Simplify.Web.Modules.LanguageManager

Current language controller and information container
상속: ILanguageManager
파일 보기 프로젝트 열기: i4004/Simplify.Web 1 사용 예제들

공개 메소드들

메소드 설명
LanguageManager ( ISimplifyWebSettings settings, IOwinContext context ) : System

Initializes a new instance of the LanguageManager class.

SetCookieLanguage ( string language ) : void

Set site cookie language value

SetCurrentLanguage ( string language ) : bool

Set language only for current request

비공개 메소드들

메소드 설명
TrySetLanguageFromCookie ( IOwinContext context ) : bool
TrySetLanguageFromRequestHeader ( IOwinContext context ) : bool

메소드 상세

LanguageManager() 공개 메소드

Initializes a new instance of the LanguageManager class.
public LanguageManager ( ISimplifyWebSettings settings, IOwinContext context ) : System
settings ISimplifyWebSettings The settings.
context IOwinContext The OWIN context.
리턴 System

SetCookieLanguage() 공개 메소드

Set site cookie language value
public SetCookieLanguage ( string language ) : void
language string Language code
리턴 void

SetCurrentLanguage() 공개 메소드

Set language only for current request
public SetCurrentLanguage ( string language ) : bool
language string Language code
리턴 bool