Cares.Web.Controllers.ManageController.SignInAsync C# (CSharp) Method

SignInAsync() private method

private SignInAsync ( AspNetUser user, bool isPersistent ) : System.Threading.Tasks.Task
user FRS.Models.IdentityModels.AspNetUser
isPersistent bool
return System.Threading.Tasks.Task
        private async Task SignInAsync(AspNetUser user, bool isPersistent)
        {
            AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie, DefaultAuthenticationTypes.TwoFactorCookie);
            AuthenticationManager.SignIn(new AuthenticationProperties { IsPersistent = isPersistent }, await user.GenerateUserIdentityAsync(UserManager,
                DefaultAuthenticationTypes.ApplicationCookie));
        }