//IAdminManager _adminManager; public aAccountController(IUserManager userManager, IEmailTemplateManager emailTemplateManager) { _userManager = userManager; // _pushNotificationManager = pushNotificationManager; _emailtemplaateManager = emailTemplateManager; //_adminManager = adminManager; }
public AccountController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager emailTemplateManager, INotificationStackManager notificationStackManager) { _userManager = userManager; _emailTemplateManager = emailTemplateManager; _errorLogManager = errorLogManager; _notificationStackManager = notificationStackManager; }
public HomeController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager, ICMSManager cmsManager) : base(errorLogManager) { _userManager = userManager; _templateManager = templateManager; _cmsManager = cmsManager; }
public ContactUsController(IContactUsManager ContactUsManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager, IEditorManager editorManager) : base(errorLogManager) { _ContactUsManager = ContactUsManager; _templateManager = templateManager; _editorManager = editorManager; }
public PostCardController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager, IEditorManager editorManager) : base(errorLogManager) { _userManager = userManager; _templateManager = templateManager; _editorManager = editorManager; }
private IContainer Registrations(IEmailTemplateManager emailTemplateManager = null, IEmailNotifier emailNotifier = null) { ContainerBuilder builder = new ContainerBuilder(); builder.RegisterInstance(new Mock <IDateTimeProvider>().Object).As <IDateTimeProvider>().SingleInstance(); builder.RegisterInstance(emailTemplateManager ?? new Mock <IEmailTemplateManager>().Object).As <IEmailTemplateManager>().SingleInstance(); builder.RegisterInstance(emailNotifier ?? new Mock <IEmailNotifier>().Object).As <IEmailNotifier>().SingleInstance(); builder.RegisterInstance(new Mock <IFileUploadJobManager>().Object).As <IFileUploadJobManager>().SingleInstance(); builder.RegisterInstance(new Mock <ILogger>().Object).As <ILogger>().SingleInstance(); builder.RegisterInstance(new Mock <IReturnCalendarService>().Object).As <IReturnCalendarService>().SingleInstance(); builder.RegisterType <JobManager>().As <IJobManager>().InstancePerLifetimeScope(); builder.RegisterType <JobQueueDataContext>().As <IJobQueueDataContext>().InstancePerDependency(); builder.Register(context => { SqliteConnection connection = new SqliteConnection("DataSource=:memory:"); connection.Open(); return(GetContextOptions()); }) .As <DbContextOptions <JobQueueDataContext> >() .SingleInstance(); IContainer container = builder.Build(); return(container); }
protected AbstractJobManager( Func <IJobQueueDataContext> contextFactory, IReturnCalendarService returnCalendarService, IEmailTemplateManager emailTemplateManager) { _contextFactory = contextFactory; _returnCalendarService = returnCalendarService; _emailTemplateManager = emailTemplateManager; }
public HomeController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager, ICMSManager cmsManager, IPaymentManager paymentManager, ITestimonialManager testimonialManager) : base(errorLogManager) { _userManager = userManager; _paymentManager = paymentManager; _templateManager = templateManager; _cmsManager = cmsManager; _testimonialManager = testimonialManager; }
public EmailAppService( IWebConfigConfigurationManager webConfigConfigurationManager, IEmailTemplateManager emailTemplateManager, ISmtpEmailSenderConfiguration smtpEmailSenderConfiguration ) { _webConfigConfigurationManager = webConfigConfigurationManager; _emailTemplateManager = emailTemplateManager; _smtpEmailSenderConfiguration = smtpEmailSenderConfiguration; _smtpClient = BuildSmtpClient(); }
public HomeController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager emailTemplateManager, INotificationStackManager notificationStackManager, IRecipientManager recipientManager, IEditorManager editorManager, IPaymentManager paymentManager, IAddressBookManager addressBookManager) { _userManager = userManager; _emailTemplateManager = emailTemplateManager; _errorLogManager = errorLogManager; _notificationStackManager = notificationStackManager; _recipientManager = recipientManager; _editorManager = editorManager; _paymentManager = paymentManager; _addressBookManager = addressBookManager; }
public EmailScheduleController(IMapper mapper, IEmailScheduleManager emailScheduleManager, IEmailScheduleParameterManager emailScheduleParameterManager, IEmailTemplateManager emailTemplateManager, IApplicationEmailSender applicationEmailSender, UserManager <IdentityUser> userManager, IUserRepository userRepository) { __Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); __EmailScheduleManager = emailScheduleManager ?? throw new ArgumentNullException(nameof(emailScheduleManager)); __EmailScheduleParameterManager = emailScheduleParameterManager ?? throw new ArgumentNullException(nameof(emailScheduleParameterManager)); __EmailTemplateManager = emailTemplateManager ?? throw new ArgumentNullException(nameof(emailTemplateManager)); __EmailSender = applicationEmailSender ?? throw new ArgumentNullException(nameof(applicationEmailSender)); __UserManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); __UserRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); }
public FileUploadJobManager( Func <IJobQueueDataContext> contextFactory, IDateTimeProvider dateTimeProvider, IReturnCalendarService returnCalendarService, IEmailTemplateManager emailTemplateManager, IEmailNotifier emailNotifier, ILogger logger) : base(contextFactory, returnCalendarService, emailTemplateManager) { _contextFactory = contextFactory; _dateTimeProvider = dateTimeProvider; _emailNotifier = emailNotifier; _logger = logger; }
public NL_Controller(IEmailTemplateManager emailTemplate, IEmailSender emailSender) { _emailTemplate = emailTemplate; _emailSender = emailSender; }
public EmailTemplateController(IHttpContextAccessor httpContextAccessor, IEmailTemplateManager templateManager) : base(httpContextAccessor) { _tempMgr = templateManager; }
public static async Task <(string subject, string template)> LoadEmailTemplateAsync(this IEmailTemplateManager tm, string templateName, Func <IDictionary <string, string>, System.Threading.Tasks.Task> fillProperties = null) { if (string.IsNullOrEmpty(templateName)) { throw new ArgumentNullException(nameof(templateName)); } var properties = new Dictionary <string, string>(); if (fillProperties != null) { await fillProperties(properties).ConfigureAwait(false); } var template = await tm.GetEmailTemplateAsync(templateName).ConfigureAwait(false); if (template == null) { return(string.Empty, string.Empty); } var subject = !string.IsNullOrEmpty(template.Subject) ? template.Subject : "A notification from sensenet"; var body = !string.IsNullOrEmpty(template.Body) ? template.Body : string.Empty; if (!properties.Any()) { return(subject, body); } // replace variables subject = properties.Aggregate(subject, (current, property) => current.Replace($"{{{property.Key}}}", property.Value)); body = properties.Aggregate(body, (current, property) => current.Replace($"{{{property.Key}}}", property.Value)); return(subject, body); }
public EmailTemplateController(IUserManager userManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager) : base(errorLogManager) { _userManager = userManager; _templateManager = templateManager; }
public EmailTemplateController(IMapper mapper, IEmailTemplateManager emailTemplateManager) { __Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); __EmailTemplateManager = emailTemplateManager ?? throw new ArgumentNullException(nameof(emailTemplateManager)); }
public CategoryController(ICategoryManager CategoryManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager) : base(errorLogManager) { _CategoryManager = CategoryManager; _templateManager = templateManager; }
public DishController(IDishManager DishManager, IErrorLogManager errorLogManager, IEmailTemplateManager templateManager) : base(errorLogManager) { _DishManager = DishManager; _templateManager = templateManager; }
public MailComposerViewComponent(IHttpContextAccessor httpContextAccessor, IEmailTemplateManager eTemp, IWebHostEnvironment hostingEnv) : base(httpContextAccessor) { _tempMgr = eTemp; serverPath = hostingEnv.ContentRootPath + "/wwwroot/"; DevMode = hostingEnv.IsDevelopment(); }