public static bool enableGZipForWebServices(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSetup.notNull()) { return(tmConfig.TMSetup.EnableGZipForWebServices); } return(false); }
public static bool showDetailedErrorMessages(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSetup.notNull()) { return(tmConfig.TMSetup.ShowDetailedErrorMessages); } return(false); }
public static bool show_LibraryToAnonymousUsers(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSecurity.notNull()) { return(tmConfig.TMSecurity.Show_LibraryToAnonymousUsers); } return(false); }
public static bool enable304Redirects(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSetup.notNull()) { return(tmConfig.TMSetup.Enable304Redirects); } return(false); }
public static bool windowsAuthentication_Enabled(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.WindowsAuthentication.notNull()) { return(tmConfig.WindowsAuthentication.Enabled); } return(false); }
public static bool emailAdminOnNewUsers(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSecurity.notNull()) { return(tmConfig.TMSecurity.EmailAdmin_On_NewUsers); } return(false); }
public static bool newAccountsEnabled(this TMConfig tmConfig) { if (tmConfig.notNull() && tmConfig.TMSecurity.notNull()) { return(tmConfig.TMSecurity.NewAccounts_Enabled); } return(false); }
public static DateTime currentExpirationDate(this TMConfig tmConfig) { return((tmConfig.notNull() && tmConfig.TMSecurity.EvalAccounts_Enabled) ? DateTime.Now.AddDays(tmConfig.TMSecurity.EvalAccounts_Days) : default(DateTime)); }