public IActionResult Logout([FromServices] HttpGetLogoutCommand command)
 => command.Execute(HttpContext);
Example #2
0
 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);