HttpContextExtensions
Assembly: ServiceStack.dll
View Source
Declaration
public static class HttpContextExtensions
Methods
GetUser(HttpContext)
View Source
Declaration
public static IPrincipal GetUser(this HttpContext ctx)
Returns
System.Security.Principal.IPrincipal
Parameters
Type | Name |
---|---|
System.Web.HttpContext | ctx |
GetUser(HttpContextBase)
View Source
Declaration
public static IPrincipal GetUser(this HttpContextBase ctx)
Returns
System.Security.Principal.IPrincipal
Parameters
Type | Name |
---|---|
System.Web.HttpContextBase | ctx |
GetUser(IRequest)
View Source
Declaration
public static IPrincipal GetUser(this IRequest req)
Returns
System.Security.Principal.IPrincipal
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
GetUserName(IPrincipal)
View Source
Declaration
public static string GetUserName(this IPrincipal user)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Security.Principal.IPrincipal | user |