Application.Web.Controllers.ManageController.SignInAsync C# (CSharp) Метод

SignInAsync() приватный Метод

private SignInAsync ( ApplicationUser user, bool isPersistent ) : System.Threading.Tasks.Task
user ApplicationUser
isPersistent bool
Результат System.Threading.Tasks.Task
        private async Task SignInAsync(ApplicationUser user, bool isPersistent)
        {
            AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie, DefaultAuthenticationTypes.TwoFactorCookie);
            AuthenticationManager.SignIn(new AuthenticationProperties { IsPersistent = isPersistent }, await user.GenerateUserIdentityAsync(UserManager));
        }