C# Class Worki.Infrastructure.MultiCultureMvcRouteHandler

Inheritance: MvcRouteHandler
Afficher le fichier Open project: tah91/eworkyWebSite

Méthodes publiques

Свойство Type Description
Cultures List
DefaultCulture Culture

Méthodes publiques

Méthode Description
ExtractDomainPrefix ( Uri url ) : string

Extract culture from an url

GetCulture ( string userLanguages ) : Culture

Get culture type from user language

GetCulture ( Uri url, Culture &culture ) : bool

Get culture type from url

GetPrefix ( string lang ) : string

Get suffix from culture

SetDomainPrefix ( Uri url, string lang ) : string

Replace the suffix of an url

TryAddCultureChangedCookie ( ) : void

Méthodes protégées

Méthode Description
GetHttpHandler ( System.Web.Routing.RequestContext requestContext ) : IHttpHandler

Private Methods

Méthode Description
ShouldGuessCulture ( bool fromQuery ) : bool

Method Details

ExtractDomainPrefix() public static méthode

Extract culture from an url
public static ExtractDomainPrefix ( Uri url ) : string
url System.Uri the url
Résultat string

GetCulture() public static méthode

Get culture type from user language
public static GetCulture ( string userLanguages ) : Culture
userLanguages string
Résultat Culture

GetCulture() public static méthode

Get culture type from url
public static GetCulture ( Uri url, Culture &culture ) : bool
url System.Uri the url
culture Culture culture to be set
Résultat bool

GetHttpHandler() protected méthode

protected GetHttpHandler ( System.Web.Routing.RequestContext requestContext ) : IHttpHandler
requestContext System.Web.Routing.RequestContext
Résultat IHttpHandler

GetPrefix() public static méthode

Get suffix from culture
public static GetPrefix ( string lang ) : string
lang string the lang
Résultat string

SetDomainPrefix() public static méthode

Replace the suffix of an url
public static SetDomainPrefix ( Uri url, string lang ) : string
url System.Uri the url
lang string the lang of the suffix
Résultat string

TryAddCultureChangedCookie() public méthode

public TryAddCultureChangedCookie ( ) : void
Résultat void

Property Details

Cultures public_oe static_oe property

public static List Cultures
Résultat List

DefaultCulture public_oe static_oe property

public static Culture DefaultCulture
Résultat Culture