c# - Unable to resolve service for type 'Microsoft.Owin.Security.IAuthenticationManager' while attempting to activate ApplicationSignInManager -
i'm using vnext identity 2 , error
unable resolve service type
microsoft.owin.security.iauthenticationmanager
while attempting activate applicationsigninmanager
.
in startup.cs
have :
services.addscoped<signinmanager<applicationuser, int>, applicationsigninmanager>();
in applicationsigninmanager.cs
class
public sealed class applicationsigninmanager : signinmanager<applicationuser, int> { usermanager<applicationuser, int> _usermanager { get; } signinmanager<applicationuser, int> _signinmanager { get; } public applicationsigninmanager(usermanager<applicationuser, int> _usermanager, iauthenticationmanager authenticationmanager) : base(_usermanager, system.web.httpcontext.current.getowincontext().authentication) { usermanager = _usermanager; } }
i've tried many different approaches , can't hurdle.
Comments
Post a Comment