What is the difference if we call below mention functions: await httpContext.RequestServices.GetRequiredService<AbpSignInManager>().SignOutAsync(); await httpContext.RequestServices.GetRequiredService<LoggedOutModel>().OnGetAsync();
ABP Framework version: v5.3.2
UI Type:React
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace:NA
Steps to reproduce the issue: Login and Logout
3 Answer(s)
-
0
hi
Please use the
AbpSignInManager
, TheLoggedOutModel
is a page model. you can't call it. -
0
sure, but what is the difference between both, as per my understanding we can call LoggedOutModel after overriding.
-
0
hi
The
page model
is designed for the HTTP calls. You should use theAbpSignInManager
in your service.