AspNetCheckedListExample.Controllers.AccountController.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);
            var identity = await UserManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
            AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
        }