To work with Identity in the project there are: a controller ( AccountController ) and a service ( IdentityService ).
Both classes have fields:
UserManager (Type: UserManager<AuthUser>) and
AuthenticationManager(Type: IAuthenticationManager) .
They are initialized by the object.
HttpContext.GetOwinContext().GetUserManager<AuthUserManager>() and
HttpContext.GetOwinContext().Authentication respectively.
An instance of the IOwinContext type is transferred to the service, with which the fields are also initialized.
The controller defines a method that returns the hash codes of these objects. The hash codes for the UserManager objects UserManager same, but the hash codes for the AuthenticationManager objects are different. Why is that?

    0