/// <summary> /// Creates a new <see cref="EmailViewResult"/>. /// </summary> #if ASPNET5 public EmailViewResult(Email email, IEmailViewRenderer renderer, IEmailParser parser, IServiceProvider serviceProvider, RequestUrl url) { Email = email; Renderer = renderer ?? new EmailViewRenderer(serviceProvider); Parser = parser ?? new EmailParser(Renderer, url); _requestUrl = url; }
/// <summary> /// Creates a new <see cref="EmailViewResult"/>. /// </summary> #if ASPNET5 public EmailViewResult(Email email, IEmailViewRenderer renderer, IEmailParser parser, IServiceProvider serviceProvider) { var requestFeature = serviceProvider.GetRequiredService <Microsoft.AspNetCore.Http.Features.IHttpRequestFeature>(); Email = email; Renderer = renderer ?? new EmailViewRenderer(serviceProvider); Parser = parser ?? new EmailParser(Renderer, requestFeature); }
public AdminController(ITeamRepository teamRepository, UserManager <User> userManager, ITransactionHistoryRepository transactionHistoryRepository, IMapper mapper, IEmailSender emailSender, IEmailViewRenderer emailViewRenderer, IOptions <AppSettings> appSettings) { UserManager = userManager; TeamRepository = teamRepository; TransactionHistoryRepository = transactionHistoryRepository; Mapper = mapper; EmailSender = emailSender; EmailViewRenderer = emailViewRenderer; AppSettings = appSettings.Value; }
public AccountController( UserManager <User> userManager, SignInManager <User> signInManager, IEmailSender emailSender, ILoggerFactory loggerFactory, IEmailViewRenderer emailViewRenderer) { UserManager = userManager; SignInManager = signInManager; EmailSender = emailSender; Logger = loggerFactory.CreateLogger <AccountController>(); EmailViewRenderer = emailViewRenderer; }
public CheckoutController(ITeamRepository teamRepository, UserManager <User> userManager, IOptions <AppSettings> appSettings, IPaymentService paymentService, ITransactionHistoryRepository transactionHistoryRepository, IEmailViewRenderer emailViewRenderer, IMapper mapper, IEmailSender emailSender) { TeamRepository = teamRepository; UserManager = userManager; AppSettings = appSettings.Value; PaymentService = paymentService; TransactionHistoryRepository = transactionHistoryRepository; EmailViewRenderer = emailViewRenderer; Mapper = mapper; EmailSender = emailSender; }
/// <summary> /// Creates a new <see cref="EmailService"/>. /// </summary> public EmailService(IEmailViewRenderer emailViewRenderer, IEmailParser emailParser, Func <SmtpClient> createSmtpClient) { this.emailViewRenderer = emailViewRenderer; this.emailParser = emailParser; this.createSmtpClient = createSmtpClient; }
public SimpleEmailService(IEmailViewRenderer emailViewRenderer, IEmailParser emailParser, AmazonSimpleEmailService amazonSimpleEmailService) { _emailViewRenderer = emailViewRenderer; _simpleEmailService = amazonSimpleEmailService; _emailParser = emailParser; }
public SimpleEmailService(IEmailViewRenderer emailViewRenderer) { _emailViewRenderer = emailViewRenderer; _simpleEmailService = AWSClientFactory.CreateAmazonSimpleEmailServiceClient(); _emailParser = new EmailParser(emailViewRenderer); }
/// <summary> /// Creates a new <see cref="EmailParser"/>. /// </summary> public EmailParser(IEmailViewRenderer alternativeViewRenderer) { this.alternativeViewRenderer = alternativeViewRenderer; }
/// <summary> /// Creates a new <see cref="EmailService"/>. /// </summary> public EmailService(IEmailViewRenderer emailViewRenderer, IEmailParser emailParser, Func<SmtpClient> createSmtpClient) { this.emailViewRenderer = emailViewRenderer; this.emailParser = emailParser; this.createSmtpClient = createSmtpClient; }
public EmailParser(IEmailViewRenderer alternativeViewRenderer, Microsoft.AspNetCore.Http.Features.IHttpRequestFeature requsetFeature) { this.alternativeViewRenderer = alternativeViewRenderer; _requsetFeature = requsetFeature; }
public EmailParser(IEmailViewRenderer alternativeViewRenderer, RequestUrl url) { this.alternativeViewRenderer = alternativeViewRenderer; _url = url; }
public SendGridMessageFactory(IEmailViewRenderer renderer) : base(renderer) { }
public MailMessageFactory(IEmailViewRenderer renderer) { _renderer = renderer; }
public EmailViewResult(Email email, IEmailViewRenderer renderer, IEmailParser parser) { Email = email; Renderer = renderer ?? new EmailViewRenderer(ViewEngineCollection); Parser = parser ?? new EmailParser(Renderer); }
/// <summary> /// Creates a new <see cref="EmailViewResult"/>. /// </summary> public EmailViewResult(Email email, IEmailViewRenderer renderer, IEmailParser parser) { Email = email; Renderer = renderer ?? new EmailViewRenderer(ViewEngineCollection); Parser = parser ?? new EmailParser(Renderer); }
/// <param name="viewEngines">The view engines to use when creating email views.</param> /// <param name="url">The URL of the current request. This is for the UrlHelper used when generating Urls in a view. When null, this is determined from the current HttpContext instead.</param> /// <param name="createSmtpClient">A function that creates a <see cref="SmtpClient"/>. If null, a default creation function is used.</param> public EmailService(ViewEngineCollection viewEngines, Uri url = null, Func<SmtpClient> createSmtpClient = null) { emailViewRenderer = new EmailViewRenderer(viewEngines, url); emailParser = new EmailParser(emailViewRenderer); this.createSmtpClient = createSmtpClient ?? (() => new SmtpClient()); }