示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterCommandHandler"/> class.
 /// </summary>
 /// <param name="userManager"></param>
 /// <param name="eventManager"></param>
 /// <param name="urlEncoder"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="currentLanguageProvider"></param>
 public RegisterCommandHandler(
     IUserManager userManager,
     IIdentityEventManager eventManager,
     UrlEncoder urlEncoder,
     IHttpContextAccessor httpContextAccessor,
     ICurrentLanguageProvider currentLanguageProvider)
 {
     this.userManager             = userManager;
     this.eventManager            = eventManager;
     this.urlEncoder              = urlEncoder;
     this.httpContextAccessor     = httpContextAccessor;
     this.currentLanguageProvider = currentLanguageProvider;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ForgotPasswordCommandHandler"/> class.
 /// </summary>
 /// <param name="userManager"></param>
 /// <param name="identityEventManager"></param>
 /// <param name="urlEncoder"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="currentLanguageProvider"></param>
 public ForgotPasswordCommandHandler(
     IUserManager userManager,
     IIdentityEventManager identityEventManager,
     UrlEncoder urlEncoder,
     IHttpContextAccessor httpContextAccessor,
     ICurrentLanguageProvider currentLanguageProvider)
 {
     this.userManager             = userManager;
     this.identityEventManager    = identityEventManager;
     this.urlEncoder              = urlEncoder;
     this.httpContextAccessor     = httpContextAccessor;
     this.currentLanguageProvider = currentLanguageProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestChangeEmailCommandHandler"/> class.
 /// </summary>
 /// <param name="userManager"></param>
 /// <param name="logger"></param>
 /// <param name="currentLanguageProvider"></param>
 /// <param name="identityEventManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="urlEncoder"></param>
 public RequestChangeEmailCommandHandler(
     IUserManager userManager,
     IEmLogger logger,
     ICurrentLanguageProvider currentLanguageProvider,
     IIdentityEventManager identityEventManager,
     IHttpContextAccessor httpContextAccessor,
     UrlEncoder urlEncoder)
 {
     this.userManager             = userManager;
     this.logger                  = logger;
     this.currentLanguageProvider = currentLanguageProvider;
     this.identityEventManager    = identityEventManager;
     this.httpContextAccessor     = httpContextAccessor;
     this.urlEncoder              = urlEncoder;
 }
示例#4
0
        internal TranslationPlugin(IConfiguration configuration, ICurrentLanguageProvider languageProvider, IDictionaryService dictionaryService)
        {
            // This will guard us from possible nullpointers
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (languageProvider == null)
            {
                throw new ArgumentNullException(nameof(languageProvider));
            }
            if (dictionaryService == null)
            {
                throw new ArgumentNullException(nameof(dictionaryService));
            }

            this.configuration     = configuration;
            this.languageProvider  = languageProvider;
            this.dictionaryService = dictionaryService;
        }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Localizer"/> class.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="logger"></param>
 /// <param name="currentLanguageProvider"></param>
 public Localizer(ILocalizationContext context, IEmLogger logger, ICurrentLanguageProvider currentLanguageProvider)
 {
     this.context = context;
     this.logger  = logger;
     this.currentLanguageProvider = currentLanguageProvider;
 }
 public ForgotPasswordEventHandler(IEmailSender emailSender, ICurrentLanguageProvider currentLanguageProvider, IUserManager userManager)
 {
     this.emailSender             = emailSender;
     this.currentLanguageProvider = currentLanguageProvider;
     this.userManager             = userManager;
 }