static StudioNotifyHelper() { Helplink = CommonLinkUtility.GetHelpLink(false); NotifySource = new StudioNotifySource(); SubscriptionProvider = NotifySource.GetSubscriptionProvider(); RecipientsProvider = NotifySource.GetRecipientsProvider(); }
public Subscriber() { var engine = BasePage.GetEngine(); _subscriptionProvider = engine.NotifySource.GetSubscriptionProvider(); _recipientProvider = engine.NotifySource.GetRecipientsProvider(); }
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"]; }
protected void LazyInitializeProviders() { if (!initialized) { lock (syncRoot) { if (!initialized) { RecipientsProvider = CreateRecipientsProvider(); if (RecipientsProvider == null) { throw new NotifyException(String.Format("Provider {0} not instanced.", "IRecipientsProvider")); } DependencyProvider = CreateDependencyProvider(); if (DependencyProvider == null) { throw new NotifyException(String.Format("Provider {0} not instanced.", "IDependencyProvider")); } SubscriprionProvider = CreateSubscriptionProvider(); if (SubscriprionProvider == null) { throw new NotifyException(String.Format("Provider {0} not instanced.", "ISubscriprionProvider")); } initialized = true; } } } }
public TopSubscriptionProvider(IRecipientProvider recipientProvider, ISubscriptionProvider directSubscriptionProvider) { if (recipientProvider == null) throw new ArgumentNullException("recipientProvider"); if (directSubscriptionProvider == null) throw new ArgumentNullException("directSubscriptionProvider"); this.recipientProvider = recipientProvider; subscriptionProvider = directSubscriptionProvider; }
public DirectSubscriptionProvider(string sourceID, SubscriptionManager subscriptionManager, IRecipientProvider recipientProvider) { if (string.IsNullOrEmpty(sourceID)) { throw new ArgumentNullException("sourceID"); } this.sourceID = sourceID; this.subscriptionManager = subscriptionManager ?? throw new ArgumentNullException("subscriptionManager"); this.recipientProvider = recipientProvider ?? throw new ArgumentNullException("recipientProvider"); }
public DirectSubscriptionProvider(string sourceID, ISubscriptionManagerClient subscriptionManager, IRecipientProvider recipientProvider) { if (string.IsNullOrEmpty(sourceID)) throw new ArgumentNullException("sourceID"); if (subscriptionManager == null) throw new ArgumentNullException("subscriptionManager"); if (recipientProvider == null) throw new ArgumentNullException("recipientProvider"); this.sourceID = sourceID; this.subscriptionManager = subscriptionManager; this.recipientProvider = recipientProvider; }
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"]; }
public NotifySource(string id, UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) { if (string.IsNullOrEmpty(id)) { throw new ArgumentNullException("id"); } ID = id; UserManager = userManager; RecipientsProvider = recipientsProvider; SubscriptionManager = subscriptionManager; }
public TopSubscriptionProvider(IRecipientProvider recipientProvider, ISubscriptionProvider directSubscriptionProvider) { if (recipientProvider == null) { throw new ArgumentNullException("recipientProvider"); } if (directSubscriptionProvider == null) { throw new ArgumentNullException("directSubscriptionProvider"); } this.recipientProvider = recipientProvider; subscriptionProvider = directSubscriptionProvider; }
public DirectSubscriptionProvider(string sourceID, ISubscriptionManagerClient subscriptionManager, IRecipientProvider recipientProvider, IActionProvider actionProvider) { if (string.IsNullOrEmpty(sourceID)) { throw new ArgumentNullException("sourceID"); } if (subscriptionManager == null) { throw new ArgumentNullException("subscriptionManager"); } if (recipientProvider == null) { throw new ArgumentNullException("recipientProvider"); } this.sourceID = sourceID; this.subscriptionManager = subscriptionManager; this.recipientProvider = recipientProvider; }
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; }
public StudioNotifySource(UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) : base("asc.web.studio", userManager, recipientsProvider, subscriptionManager) { }
public NotifySource(Guid id, UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) : this(id.ToString(), userManager, recipientsProvider, subscriptionManager) { }
public NotifySource(UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) : base(new Guid("6FE286A4-479E-4c25-A8D9-0156E332B0C0"), userManager, recipientsProvider, subscriptionManager) { }
public TopSubscriptionProvider(IRecipientProvider recipientProvider, ISubscriptionProvider directSubscriptionProvider, string[] defaultSenderMethods) : this(recipientProvider, directSubscriptionProvider) { this.defaultSenderMethods = defaultSenderMethods; }
public NotifySource(UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) : base(new Guid("{13FF36FB-0272-4887-B416-74F52B0D0B02}"), userManager, recipientsProvider, subscriptionManager) { }
public TopSubscriptionProvider(IRecipientProvider recipientProvider, ISubscriptionProvider directSubscriptionProvider, string[] defaultSenderMethods) : this(recipientProvider, directSubscriptionProvider) { _defaultSenderMethods = defaultSenderMethods; }
protected void LazyInitializeProviders() { if (!initialized) { lock (syncRoot) { if (!initialized) { RecipientsProvider = CreateRecipientsProvider(); if (RecipientsProvider == null) { throw new NotifyException(String.Format("Provider {0} not instanced.", "IRecipientsProvider")); } SubscriprionProvider = CreateSubscriptionProvider(); if (SubscriprionProvider == null) { throw new NotifyException(String.Format("Provider {0} not instanced.", "ISubscriprionProvider")); } initialized = true; } } } }
public CalendarNotifySource(UserManager userManager, IRecipientProvider recipientsProvider, SubscriptionManager subscriptionManager) : base(new Guid("{40650DA3-F7C1-424c-8C89-B9C115472E08}"), userManager, recipientsProvider, subscriptionManager) { }