C# Class Rolcore.Web.HttpContextExtensions

Extension methods for HttpContext.
Afficher le fichier Open project: Rollins/Rolcore

Méthodes publiques

Méthode Description
GetClientLanguageCode ( this httpContext ) : string

Code indicating preferred client language.

GetSiteBaseUrl ( this httpContext ) : Uri

The base URL of the current website based on the current request. This can be overridden in the Web.Config by adding a Site.BaseUrl configSetting.

GetUnrewrittenUrl ( this httpContext ) : string
SetClientLanguageCode ( this httpContext, string value ) : void
SetUnrewrittenUrl ( this httpContext, Uri value ) : void
SetUnrewrittenUrl ( this httpContext, string value ) : void

Method Details

GetClientLanguageCode() public static méthode

Code indicating preferred client language.
public static GetClientLanguageCode ( this httpContext ) : string
httpContext this
Résultat string

GetSiteBaseUrl() public static méthode

The base URL of the current website based on the current request. This can be overridden in the Web.Config by adding a Site.BaseUrl configSetting.
public static GetSiteBaseUrl ( this httpContext ) : Uri
httpContext this
Résultat System.Uri

GetUnrewrittenUrl() public static méthode

public static GetUnrewrittenUrl ( this httpContext ) : string
httpContext this
Résultat string

SetClientLanguageCode() public static méthode

public static SetClientLanguageCode ( this httpContext, string value ) : void
httpContext this
value string
Résultat void

SetUnrewrittenUrl() public static méthode

public static SetUnrewrittenUrl ( this httpContext, Uri value ) : void
httpContext this
value System.Uri
Résultat void

SetUnrewrittenUrl() public static méthode

public static SetUnrewrittenUrl ( this httpContext, string value ) : void
httpContext this
value string
Résultat void