public BaseIdentityManager(
     IMedioClinicUserManager <MedioClinicUser, int> userManager,
     IBusinessDependencies dependencies)
 {
     UserManager  = userManager ?? throw new ArgumentNullException(nameof(userManager));
     Dependencies = dependencies ?? throw new ArgumentNullException(nameof(dependencies));
 }
 /// <summary>
 /// Creates a new instance of <see cref="MedioClinicSignInManager"/>.
 /// </summary>
 /// <param name="userManager">An instance of <see cref="UserManager"/> used to retrieve users from and persist users.</param>
 /// <param name="contextAccessor">The accessor used to access the <see cref="HttpContext"/>.</param>
 /// <param name="claimsFactory">The factory to use to create claims principals for a user.</param>
 /// <param name="optionsAccessor">The accessor used to access the <see cref="IdentityOptions"/>.</param>
 /// <param name="logger">The logger used to log messages, warnings and errors.</param>
 /// <param name="schemes">The scheme provider that is used enumerate the authentication schemes.</param>
 /// <param name="confirmation">The <see cref="IUserConfirmation{MedioClinicUser}"/> used check whether a user account is confirmed.</param>
 public MedioClinicSignInManager(IMedioClinicUserManager <MedioClinicUser> userManager,
                                 IHttpContextAccessor contextAccessor,
                                 IUserClaimsPrincipalFactory <MedioClinicUser> claimsFactory,
                                 IOptions <IdentityOptions> optionsAccessor,
                                 ILogger <MedioClinicSignInManager> logger,
                                 IAuthenticationSchemeProvider schemes,
                                 IUserConfirmation <MedioClinicUser> confirmation)
     : base((UserManager <MedioClinicUser>)userManager, contextAccessor, claimsFactory, optionsAccessor, logger, schemes, confirmation)
 {
 }
Ejemplo n.º 3
0
 public AccountManager(
     IMedioClinicUserManager <MedioClinicUser, int> userManager,
     IMedioClinicSignInManager <MedioClinicUser, int> signInManager,
     IAuthenticationManager authenticationManager,
     IAvatarRepository avatarRepository,
     IBusinessDependencies dependencies)
     : base(userManager, dependencies)
 {
     SignInManager         = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
     AuthenticationManager = authenticationManager ?? throw new ArgumentNullException(nameof(authenticationManager));
     AvatarRepository      = avatarRepository ?? throw new ArgumentNullException(nameof(avatarRepository));
 }
 public AccountManager(
     ILogger <AccountManager> logger,
     IUrlHelperFactory urlHelperFactory,
     IActionContextAccessor actionContextAccessor,
     IMessageService messageService,
     IMedioClinicUserManager <MedioClinicUser> userManager,
     IMedioClinicSignInManager <MedioClinicUser> signInManager
     )
     : base(logger, userManager)
 {
     _urlHelperFactory      = urlHelperFactory ?? throw new ArgumentNullException(nameof(urlHelperFactory));
     _actionContextAccessor = actionContextAccessor ?? throw new ArgumentNullException(nameof(actionContextAccessor));
     _messageService        = messageService ?? throw new ArgumentNullException(nameof(messageService));
     _signInManager         = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
 }
Ejemplo n.º 5
0
 public ProfileManager(
     IAvatarRepository avatarRepository,
     IFileManager fileManager,
     IUserModelService userModelService,
     IErrorHelperService errorHelperService,
     IMedioClinicUserManager <MedioClinicUser, int> userManager,
     IMedioClinicUserStore userStore,
     IBusinessDependencies dependencies)
     : base(userManager, dependencies)
 {
     AvatarRepository   = avatarRepository ?? throw new ArgumentNullException(nameof(avatarRepository));
     FileManager        = fileManager ?? throw new ArgumentNullException(nameof(fileManager));
     UserModelService   = userModelService ?? throw new ArgumentNullException(nameof(userModelService));
     ErrorHelperService = errorHelperService ?? throw new ArgumentNullException(nameof(errorHelperService));
     UserStore          = userStore ?? throw new ArgumentNullException(nameof(userStore));
 }
Ejemplo n.º 6
0
 public ProfileManager(
     ILogger <ProfileManager> logger,
     IOptionsMonitor <XperienceOptions> optionsMonitor,
     IFileService fileService,
     IUserModelService userModelService,
     IAvatarService avatarService,
     ISiteService siteService,
     IMedioClinicUserManager <MedioClinicUser> userManager
     )
     : base(logger, userManager)
 {
     _optionsMonitor   = optionsMonitor ?? throw new ArgumentNullException(nameof(optionsMonitor));
     _fileService      = fileService ?? throw new ArgumentNullException(nameof(fileService));
     _userModelService = userModelService ?? throw new ArgumentNullException(nameof(userModelService));
     _avatarService    = avatarService ?? throw new ArgumentNullException(nameof(avatarService));
     _siteService      = siteService ?? throw new ArgumentNullException(nameof(siteService));
 }
Ejemplo n.º 7
0
 public UserViewModelBinder(IMedioClinicUserManager <MedioClinicUser, int> userManager)
 {
     UserManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
 }
Ejemplo n.º 8
0
 public BaseIdentityManager(ILogger <BaseIdentityManager> logger, IMedioClinicUserManager <MedioClinicUser> userManager)
 {
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
 }