title: .NET Core Identity UI - overriding SignInManager<IdentityUser>
body: <p>I try:</p>
  
  <pre><code>public class VoySignInManager : SignInManager&lt;IdentityUser&gt;
  {
      public VoySignInManager(Microsoft.AspNetCore.Identity.UserManager&lt;Microsoft.AspNetCore.Identity.IdentityUser&gt; userManager, Microsoft.AspNetCore.Http.IHttpContextAccessor contextAccessor, Microsoft.AspNetCore.Identity.IUserClaimsPrincipalFactory&lt;Microsoft.AspNetCore.Identity.IdentityUser&gt; claimsFactory, Microsoft.Extensions.Options.IOptions&lt;Microsoft.AspNetCore.Identity.IdentityOptions&gt; optionsAccessor, Microsoft.Extensions.Logging.ILogger&lt;Microsoft.AspNetCore.Identity.SignInManager&lt;Microsoft.AspNetCore.Identity.IdentityUser&gt;&gt; logger, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider schemes)
          : base(userManager, contextAccessor, claimsFactory, optionsAccessor, logger, schemes)
      {
      }
  
      public override Task&lt;Microsoft.AspNetCore.Identity.SignInResult&gt; PasswordSignInAsync(IdentityUser user, string password, bool isPersistent, bool lockoutOnFailure)
      {
          return Microsoft.AspNetCore.Identity.SignInResult.Success;
      }
  }
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Error   CS0029  Cannot implicitly convert type 'Microsoft.AspNetCore.Identity.SignInResult' to 'System.Threading.Tasks.Task&lt;Microsoft.AspNetCore.Identity.SignInResult&gt;'    
  </code></pre>
  
  <p>What am I doing wrong ? how do I return a successful SignInResult here ?</p>
  
  <p>(note obviously this is just a simplified version to show the error)</p>