public async Task <IActionResult> LogOff()
        {
            await HttpContext.Authentication.SignOutAsync(ApplicationConst.PilotMiddlewareInstanceName);

            _contextHolder.Dispose();
            HttpContext.Session.Clear();
            return(RedirectToAction("Index", "Home"));
        }
示例#2
0
        public async Task <IActionResult> LogOff()
        {
            await Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.SignOutAsync(HttpContext);

            _contextHolder.Dispose();
            HttpContext.Session.Clear();
            return(RedirectToAction("Index", "Home"));
        }