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