Esempio n. 1
0
 public static bool  enableGZipForWebServices(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.EnableGZipForWebServices);
     }
     return(false);
 }
Esempio n. 2
0
 public static bool showDetailedErrorMessages(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.ShowDetailedErrorMessages);
     }
     return(false);
 }
Esempio n. 3
0
 public static bool  show_LibraryToAnonymousUsers(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.Show_LibraryToAnonymousUsers);
     }
     return(false);
 }
Esempio n. 4
0
 public static bool  enable304Redirects(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.Enable304Redirects);
     }
     return(false);
 }
Esempio n. 5
0
 public static bool  windowsAuthentication_Enabled(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.WindowsAuthentication.notNull())
     {
         return(tmConfig.WindowsAuthentication.Enabled);
     }
     return(false);
 }
Esempio n. 6
0
 public static bool  emailAdminOnNewUsers(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.EmailAdmin_On_NewUsers);
     }
     return(false);
 }
Esempio n. 7
0
 public static bool  newAccountsEnabled(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.NewAccounts_Enabled);
     }
     return(false);
 }
Esempio n. 8
0
 public static DateTime  currentExpirationDate(this TMConfig tmConfig)
 {
     return((tmConfig.notNull() && tmConfig.TMSecurity.EvalAccounts_Enabled)
                ? DateTime.Now.AddDays(tmConfig.TMSecurity.EvalAccounts_Days)
                : default(DateTime));
 }