static MailSettings() { try { var emailEnabled = ConfigurationUtility.GetStringValue("EmailEnabled"); var toEmails = ConfigurationUtility.GetStringValue("AppExceptionAlert_To"); var ccEmails = ConfigurationUtility.GetStringValue("AppExceptionAlert_Cc"); var bccEmails = ConfigurationUtility.GetStringValue("AppExceptionAlert_Bcc"); var overrideTo = ConfigurationUtility.GetStringValue("EmailOverrideTo"); var emailSubject = ConfigurationUtility.GetStringValue("EmailSubject"); EmailEnabled = emailEnabled != null && emailEnabled.ToBool().GetValueOrDefault(); ExceptionAlertToEmails = toEmails == null?Enumerable.Empty <string>() : toEmails.ToEnumerable <string>(";"); ExceptionAlertCcEmails = ccEmails == null?Enumerable.Empty <string>() : ccEmails.ToEnumerable <string>(";"); ExceptionAlertBccEmails = ccEmails == null?Enumerable.Empty <string>() : bccEmails.ToEnumerable <string>(";"); EmailOverrideTo = overrideTo == null?Enumerable.Empty <string>() : overrideTo.ToEnumerable <string>(";"); EmailSubject = emailSubject ?? "Email from ACTransit"; } catch (Exception e) { log.Error(e); } }
static ActiveDirectorySettings() { Url = ConfigurationUtility.GetStringValue("AD_URL") ?? string.Empty; Username = ConfigurationUtility.GetStringValue("AD_User") ?? string.Empty; Password = ConfigurationUtility.GetStringValue("AD_Pwd") ?? string.Empty; }
static AoppSettings() { UploadDirectory = ConfigurationUtility.GetStringValue("UploadDirectory"); }