コード例 #1
0
 public RegisterModel(
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     ILogger <RegisterModel> logger,
     IEmailSender emailSender,
     IEmailListRepository emailListRepository)
 {
     _userManager             = userManager;
     _signInManager           = signInManager;
     _logger                  = logger;
     _emailSender             = emailSender;
     this.emailListRepository = emailListRepository;
 }
コード例 #2
0
 public HomeController(ILogger <HomeController> logger,
                       IHostingEnvironment hostingEnvironment,
                       IRecaptchaService recaptcha,
                       IConfiguration config,
                       IUnitOfWork unitOfWork)
 {
     _logger              = logger;
     _hostingEnvironment  = hostingEnvironment;
     _recaptcha           = recaptcha;
     _config              = config;
     _unitOfWork          = unitOfWork;
     _emailListRepository = new EmailListRepository(_unitOfWork);
 }
コード例 #3
0
 public EmailController(ILogger <EmailController> logger, IUnitOfWork unitOfWork)
 {
     _logger              = logger;
     _unitOfWork          = unitOfWork;
     _emailListRepository = new EmailListRepository(_unitOfWork);
 }