public StudioNotifyHelper( StudioNotifySource studioNotifySource, UserManager userManager, SettingsManager settingsManager, AdditionalWhiteLabelSettingsHelper additionalWhiteLabelSettingsHelper, CommonLinkUtility commonLinkUtility, SetupInfo setupInfo, TenantManager tenantManager, TenantExtra tenantExtra, CoreBaseSettings coreBaseSettings, WebImageSupplier webImageSupplier, IConfiguration configuration, IOptionsMonitor <ILog> option) { Helplink = commonLinkUtility.GetHelpLink(settingsManager, additionalWhiteLabelSettingsHelper, false); NotifySource = studioNotifySource; UserManager = userManager; SettingsManager = settingsManager; CommonLinkUtility = commonLinkUtility; SetupInfo = setupInfo; TenantManager = tenantManager; TenantExtra = tenantExtra; CoreBaseSettings = coreBaseSettings; WebImageSupplier = webImageSupplier; SubscriptionProvider = NotifySource.GetSubscriptionProvider(); RecipientsProvider = NotifySource.GetRecipientsProvider(); Log = option.CurrentValue; int.TryParse(configuration["core:notify:countspam"], out CountMailsToNotActivated); NotificationImagePath = configuration["web:notification:image:path"]; }
static StudioNotifyHelper() { Helplink = CommonLinkUtility.GetHelpLink(false); NotifySource = new StudioNotifySource(); SubscriptionProvider = NotifySource.GetSubscriptionProvider(); RecipientsProvider = NotifySource.GetRecipientsProvider(); }
static StudioNotifyHelper() { Helplink = CommonLinkUtility.GetHelpLink(false); NotifySource = new StudioNotifySource(); SubscriptionProvider = NotifySource.GetSubscriptionProvider(); RecipientsProvider = NotifySource.GetRecipientsProvider(); int.TryParse(ConfigurationManagerExtension.AppSettings["core.notify.countspam"], out CountMailsToNotActivated); NotificationImagePath = ConfigurationManagerExtension.AppSettings["web.notification.image.path"]; }
/// <summary> /// Checks if the user with the specified userID is subscribed to what's new /// </summary> /// <param name="userID"></param> /// <returns></returns> private bool IsSubscribeToWhatsNew(IRecipient recipient) { if (recipient == null) { return(false); } var subscriptionProvider = source.GetSubscriptionProvider(); return(subscriptionProvider.IsSubscribed(Constants.ActionSendWhatsNew, recipient, null)); }
public StudioNotifyHelper( StudioNotifySource studioNotifySource, UserManager userManager, SettingsManager settingsManager, AdditionalWhiteLabelSettingsHelper additionalWhiteLabelSettingsHelper, CommonLinkUtility commonLinkUtility, SetupInfo setupInfo, TenantManager tenantManager, IOptionsMonitor <ILog> option) { Helplink = commonLinkUtility.GetHelpLink(settingsManager, additionalWhiteLabelSettingsHelper, false); NotifySource = studioNotifySource; UserManager = userManager; SetupInfo = setupInfo; TenantManager = tenantManager; SubscriptionProvider = NotifySource.GetSubscriptionProvider(); RecipientsProvider = NotifySource.GetRecipientsProvider(); Log = option.CurrentValue; }