是否有比以下方法更容易/更好的方法从自定义成员资格提供程序中访问 RequestContext(此外,此方法是否有效):
private static RequestContext GetRequestContext()
{
HttpContextBase contextBase =
new HttpContextWrapper(HttpContext.Current);
return new RequestContext(
contextBase,
RouteTable.Routes.GetRouteData(contextBase));
}