Пример #1
0
 public DefaultUserService(IRepository <User> userRepo,
                           UserManager <User> userManager,
                           IEmailDeliveryMethod emailDeliveryMethod,
                           IUrlHelper urlHelper,
                           IConfirmationEmailBuilder confirmationEmailBuilder,
                           IPhoneNumberVerificationService phoneNumberVerificationService,
                           IRepository <VerifiedPhoneNumber> verifiedPhoneNumberRepo, IClock clock)
 {
     _userRepo                       = userRepo;
     _userManager                    = userManager;
     _emailDeliveryMethod            = emailDeliveryMethod;
     _urlHelper                      = urlHelper;
     _confirmationEmailBuilder       = confirmationEmailBuilder;
     _phoneNumberVerificationService = phoneNumberVerificationService;
     _verifiedPhoneNumberRepo        = verifiedPhoneNumberRepo;
     _clock = clock;
 }
Пример #2
0
 public DefaultUserService(IOptions <ExternalIdentityServiceOptions> idpOptions, IRepository <User> userRepo,
                           UserManager <User> userManager,
                           IEmailDeliveryMethod emailDeliveryMethod,
                           IUrlHelper urlHelper,
                           IConfirmationEmailBuilder confirmationEmailBuilder,
                           IResetPasswordEmailBuilder resetPasswordEmailBuilder,
                           IPhoneNumberVerificationService phoneNumberVerificationService,
                           IRepository <VerifiedPhoneNumber> verifiedPhoneNumberRepo, IClock clock, Lazy <KeyCloakUserUpdater> keyCloakUserUpdater, IOptions <ExternalIdentityServiceOptions> externalIdp)
 {
     _idpOptions                     = idpOptions.Value;
     _userRepo                       = userRepo;
     _userManager                    = userManager;
     _emailDeliveryMethod            = emailDeliveryMethod;
     _resetPasswordEmailBuilder      = resetPasswordEmailBuilder;
     _urlHelper                      = urlHelper;
     _confirmationEmailBuilder       = confirmationEmailBuilder;
     _phoneNumberVerificationService = phoneNumberVerificationService;
     _verifiedPhoneNumberRepo        = verifiedPhoneNumberRepo;
     _clock = clock;
     _keyCloakUserUpdater = keyCloakUserUpdater;
     _externalIdpOptions  = externalIdp?.Value;
 }