public string[] GetNotificationProviders(string messageType) { if (NotificationProviders != null && NotificationProviders.ContainsKey(messageType)) { return(NotificationProviders[messageType].Split(_arraySplitChar)); } return(new string[0]); }
public string GetNotificationSubject(string messageType) { if (NotificationProviders != null && NotificationProviders.ContainsKey(messageType)) { return(NotificationSubject[messageType]); } return(null); }
public static INotification GetLoggingProvider(NotificationProviders notificationProviders) { switch (notificationProviders) { case NotificationProviders.Email: return(new EmailProvider()); case NotificationProviders.Application: return(new ApplicationProvider()); default: return(new SMSProvider()); } }