Пример #1
0
 public EmailSender(IOptions <SendGridOptions> sendGridOptions,
                    IDotnetdesk dotnetdesk,
                    IOptions <SmtpOptions> smtpOptions)
 {
     _sendGridOptions = sendGridOptions.Value;
     _dotnetdesk      = dotnetdesk;
     _smtpOptions     = smtpOptions.Value;
 }
Пример #2
0
        public ContactController(ApplicationDbContext context,
                                 IDotnetdesk dotnetdesk,

                                 IEmailSender emailSender)
        {
            _context     = context;
            _dotnetdesk  = dotnetdesk;
            _emailSender = emailSender;
        }
Пример #3
0
 public ContactController(ApplicationDbContext context,
                          IDotnetdesk dotnetdesk,
                          UserManager <ApplicationUser> userManager,
                          IEmailSender emailSender)
 {
     _context     = context;
     _dotnetdesk  = dotnetdesk;
     _userManager = userManager;
     _emailSender = emailSender;
 }
Пример #4
0
 public UploadFileController(IDotnetdesk dotnetdesk,
                             IHostingEnvironment env,
                             UserManager <ApplicationUser> userManager,
                             ApplicationDbContext context)
 {
     _dotnetdesk  = dotnetdesk;
     _env         = env;
     _userManager = userManager;
     _context     = context;
 }
Пример #5
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     IDotnetdesk dotnetdesk,
     ApplicationDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
     _dotnetdesk    = dotnetdesk;
     _context       = context;
 }
Пример #6
0
 public EmailSender(IDotnetdesk dotnetdesk,
                    IOptions <SmtpOptions> smtpOptions)
 {
     Dotnetdesk  = dotnetdesk;
     SmtpOptions = smtpOptions.Value;
 }