public static IAuthorizationContext ToAuthorizationContext(this HttpRequestBase request) { IContextBuilder <IAuthorizationContext> builder = GetBuilder(); return(builder.FromHttpRequest(request)); }
public static ITokenContext ToTokenContext(this HttpRequestBase request) { IContextBuilder <ITokenContext> builder = GetContextBuilder(); return(builder.FromHttpRequest(request)); }