예제 #1
0
        public UserProfileController(
            IApplicationUserManager userManager,
            IApplicationRoleManager roleManager,
            IApplicationSignInManager signInManager,
            IProtectionProviderService protectionProviderService,
            IUserValidator <User> userValidator,
            IUsedPasswordsService usedPasswordsService,
            IUsersPhotoService usersPhotoService,
            IOptionsSnapshot <SiteSettings> siteOptions,
            IEmailSender emailSender,
            ILogger <UserProfileController> logger)
        {
            _userManager = userManager;
            _userManager.CheckArgumentIsNull(nameof(_userManager));

            _roleManager = roleManager;
            _roleManager.CheckArgumentIsNull(nameof(_roleManager));

            _signInManager = signInManager;
            _signInManager.CheckArgumentIsNull(nameof(_signInManager));

            _protectionProviderService = protectionProviderService;
            _protectionProviderService.CheckArgumentIsNull(nameof(_protectionProviderService));

            _userValidator = userValidator;
            _userValidator.CheckArgumentIsNull(nameof(_userValidator));

            _usedPasswordsService = usedPasswordsService;
            _usedPasswordsService.CheckArgumentIsNull(nameof(_usedPasswordsService));

            _usersPhotoService = usersPhotoService;
            _usersPhotoService.CheckArgumentIsNull(nameof(_usersPhotoService));

            _siteOptions = siteOptions;
            _siteOptions.CheckArgumentIsNull(nameof(_siteOptions));

            _emailSender = emailSender;
            _emailSender.CheckArgumentIsNull(nameof(_emailSender));

            _logger = logger;
            _logger.CheckArgumentIsNull(nameof(_logger));
        }
예제 #2
0
 public UserProfileController(
     IApplicationUserManager userManager,
     IApplicationRoleManager roleManager,
     IApplicationSignInManager signInManager,
     IProtectionProviderService protectionProviderService,
     IUserValidator <User> userValidator,
     IUsedPasswordsService usedPasswordsService,
     IUsersPhotoService usersPhotoService,
     IOptionsSnapshot <SiteSettings> siteOptions,
     IEmailSender emailSender,
     ILogger <UserProfileController> logger)
 {
     _userManager               = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _roleManager               = roleManager ?? throw new ArgumentNullException(nameof(roleManager));
     _signInManager             = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
     _protectionProviderService = protectionProviderService ?? throw new ArgumentNullException(nameof(protectionProviderService));
     _userValidator             = userValidator ?? throw new ArgumentNullException(nameof(userValidator));
     _usedPasswordsService      = usedPasswordsService ?? throw new ArgumentNullException(nameof(usedPasswordsService));
     _usersPhotoService         = usersPhotoService ?? throw new ArgumentNullException(nameof(usersPhotoService));
     _siteOptions               = siteOptions ?? throw new ArgumentNullException(nameof(siteOptions));
     _emailSender               = emailSender ?? throw new ArgumentNullException(nameof(emailSender));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
예제 #3
0
 public ProtectionProviderServiceController(IProtectionProviderService protectionProviderService)
 {
     _protectionProviderService = protectionProviderService;
 }
예제 #4
0
 /// <summary>
 /// EncryptedFieldModelBinder decrypts the received encrypted models from the clients.
 /// </summary>
 public EncryptedFieldModelBinder(IProtectionProviderService protectionProviderService)
 {
     _protectionProviderService = protectionProviderService;
 }