예제 #1
0
 public ProjectEmailService(
     ViewRenderer viewRenderer,
     IEmailSenderResolver emailSenderResolver,
     ILogger <ProjectEmailService> logger)
 {
     _viewRenderer        = viewRenderer;
     _emailSenderResolver = emailSenderResolver;
     _log = logger;
 }
 public CoreProjectEmailService(
     ViewRenderer viewRenderer,
     ISiteContextResolver siteResolver,
     IEmailSenderResolver emailSenderResolver,
     ILogger <CoreProjectEmailService> logger
     )
 {
     _viewRenderer        = viewRenderer;
     _emailSenderResolver = emailSenderResolver;
     _siteResolver        = siteResolver;
     _log = logger;
 }
예제 #3
0
        //TODO: we should have an option to force only plain text email
        // html emails are a lot more likely to be phished with copies
        // because the link urls are obfuscated to some degree

        public SiteEmailMessageSender(
            ViewRenderer viewRenderer,
            IEmailSenderResolver emailSenderResolver,
            IStringLocalizer <CloudscribeCore> localizer,
            ILogger <SiteEmailMessageSender> logger
            )
        {
            _log                 = logger;
            _sr                  = localizer;
            _viewRenderer        = viewRenderer;
            _emailSenderResolver = emailSenderResolver;
        }
예제 #4
0
 public HomeController(
     SiteContext currentSite,
     IEmailSenderResolver emailSenderResolver,
     ViewRenderer viewRenderer,
     GoogleAnalyticsHelper analyticsHelper
     )
 {
     _currentSite         = currentSite;
     _emailSenderResolver = emailSenderResolver;
     _viewRenderer        = viewRenderer;
     _analyticsHelper     = analyticsHelper;
 }
 public ContactFormService(
     IEnumerable <IProcessContactForm> messageProcessors,
     IContactFormResolver contactFormResolver,
     IRecaptchaKeysProvider recaptchaKeysProvider,
     ILogger <ContactFormService> logger,
     IEmailSenderResolver emailSenderResolver
     )
 {
     _contactFormResolver = contactFormResolver;
     _recaptchaKeys       = recaptchaKeysProvider;
     _messageProcessors   = messageProcessors;
     _log = logger;
     _emailSenderResolver = emailSenderResolver;
 }
예제 #6
0
 public ContactFormProcessor(
     ViewRenderer viewRenderer,
     ITenantResolver tenantResolver,
     IEmailSenderResolver emailSenderResolver,
     IContactFormResolver contactFormResolver,
     IOptions <ContactFormMessageOptions> messageProcessorOptionsAccessor,
     ILogger <ContactFormProcessor> logger
     )
 {
     _viewRenderer            = viewRenderer;
     _tenantResolver          = tenantResolver;
     _emailSenderResolver     = emailSenderResolver;
     _contactFormResolver     = contactFormResolver;
     _messageProcessorOptions = messageProcessorOptionsAccessor.Value;
     _log = logger;
 }
예제 #7
0
 public HomeController(
     IOidcHybridFlowHelper oidcHybridFlowHelper,
     IHttpClientFactory httpClientFactory,
     IdentityServer4.IdentityServerTools idserver,
     SiteContext currentSite,
     IEmailSenderResolver emailSenderResolver,
     ViewRenderer viewRenderer,
     GoogleAnalyticsHelper analyticsHelper
     )
 {
     _oidcHybridFlowHelper = oidcHybridFlowHelper;
     _currentSite          = currentSite;
     _emailSenderResolver  = emailSenderResolver;
     _viewRenderer         = viewRenderer;
     _analyticsHelper      = analyticsHelper;
     _httpClientFactory    = httpClientFactory;
     _idserver             = idserver;
 }
예제 #8
0
 public SiteAcountCapabilitiesProvider(
     IEmailSenderResolver emailSenderResolver
     )
 {
     _emailSenderResolver = emailSenderResolver;
 }