public IActionResult Logout([FromServices] HttpGetLogoutCommand command) => command.Execute(HttpContext);
public IActionResult AccessDenied([FromServices] HttpGetLogoutCommand logoutCommand, [FromServices] HttpGetAccessDeniedCommand accessDeniedCommand) { logoutCommand.Execute(HttpContext); // logs out without using the redirectresult return(accessDeniedCommand.Execute(HttpContext)); }
public async Task <IActionResult> Logout([FromServices] HttpGetLogoutCommand command) => await command.Execute(HttpContext);