public ComBoostPrincipal(IPrincipal user)
{
if (user == null)
throw new ArgumentNullException("user");
CurrentRoute = RouteTable.Routes.GetRouteData(new HttpContextWrapper(HttpContext.Current));
if (ComBoostAuthentication.IsEnabled)
{
Identity = new ComBoostIdentity(this);
OriginPrincipal = this;
}
else
{
Identity = user.Identity;
OriginPrincipal = user;
}
}