Skip to main content

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
TypeName
System.Web.HttpContextctx

GetUser(HttpContextBase)

View Source
Declaration
public static IPrincipal GetUser(this HttpContextBase ctx)
Returns

System.Security.Principal.IPrincipal

Parameters
TypeName
System.Web.HttpContextBasectx

GetUser(IRequest)

View Source
Declaration
public static IPrincipal GetUser(this IRequest req)
Returns

System.Security.Principal.IPrincipal

Parameters
TypeName
ServiceStack.Web.IRequestreq

GetUserName(IPrincipal)

View Source
Declaration
public static string GetUserName(this IPrincipal user)
Returns

System.String

Parameters
TypeName
System.Security.Principal.IPrincipaluser