Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 public SecurityController(Func <ApplicationSignInManager> signInManagerFactory, Func <IAuthenticationManager> authManagerFactory,
                           INotificationManager notificationManager,
                           IRoleManagementService roleService, ISecurityService securityService, ISecurityOptions securityOptions,
                           IPasswordCheckService passwordCheckService, IEventPublisher eventPublisher)
 {
     _signInManagerFactory         = signInManagerFactory;
     _authenticationManagerFactory = authManagerFactory;
     _roleService          = roleService;
     _securityService      = securityService;
     _securityOptions      = securityOptions;
     _passwordCheckService = passwordCheckService;
     _notificationManager  = notificationManager;
     _eventPublisher       = eventPublisher;
 }
 public SecurityController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, RoleManager <Role> roleManager,
                           IPermissionsRegistrar permissionsProvider, IUserSearchService userSearchService, IRoleSearchService roleSearchService,
                           IOptions <Core.Security.AuthorizationOptions> securityOptions, IPasswordCheckService passwordCheckService, IEmailSender emailSender, IEventPublisher eventPublisher)
 {
     _signInManager        = signInManager;
     _userManager          = userManager;
     _securityOptions      = securityOptions.Value;
     _passwordCheckService = passwordCheckService;
     _permissionsProvider  = permissionsProvider;
     _roleManager          = roleManager;
     _userSearchService    = userSearchService;
     _roleSearchService    = roleSearchService;
     _emailSender          = emailSender;
     _eventPublisher       = eventPublisher;
 }