v7.3.2018.0614   重构高性能资源池,减少GC压力,增加线程池,让异步任务得到平等竞争CPU的机会
大石头 编写于 2018-06-14 17:56:44
X
@using XCode.Membership;
@{ 
    var user = ViewBag.User as IUser ?? User.Identity as IUser;
}
@if (user != null)
{
    <text>
        你好,@Html.ActionLink(user + "", "Info", "Admin/User", routeValues: new { id = user.ID }, htmlAttributes: new { @class = "username", title = "管理" })!
        @Html.ActionLink("注销", "Logout", "Admin/User")
    </text>
}
else
{
    <ul>
        <li>@Html.ActionLink("注册", "Login", "Admin/User", routeValues: new { ReturnUrl = Request.Url, act = "Register" }, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("登录", "Login", "Admin/User", routeValues: new { ReturnUrl = Request.Url }, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}