Class AuthenticationExtensions
Extension methods for System.Security.Principal.IIdentity.
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class AuthenticationExtensions
Methods
View SourceEnsureCulture(IIdentity)
Ensures that the thread culture is set based on the back office user's culture.
Declaration
public static void EnsureCulture(this IIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IIdentity | identity | The identity. |
GetCulture(IIdentity)
Gets the culture from the back office user.
Declaration
public static CultureInfo GetCulture(this IIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IIdentity | identity | The identity. |
Returns
Type | Description |
---|---|
System.Globalization.CultureInfo | The culture. |
GetCultureString(IIdentity)
Gets the culture string from the back office user.
Declaration
public static string GetCultureString(this IIdentity identity)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IIdentity | identity | The identity. |
Returns
Type | Description |
---|---|
System.String | The culture string. |