Beispiel #1
0
 public static bool  enableGZipForWebServices(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.EnableGZipForWebServices);
     }
     return(false);
 }
Beispiel #2
0
 public static bool showDetailedErrorMessages(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.ShowDetailedErrorMessages);
     }
     return(false);
 }
Beispiel #3
0
 public static bool  show_LibraryToAnonymousUsers(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.Show_LibraryToAnonymousUsers);
     }
     return(false);
 }
Beispiel #4
0
 public static bool  enable304Redirects(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSetup.notNull())
     {
         return(tmConfig.TMSetup.Enable304Redirects);
     }
     return(false);
 }
Beispiel #5
0
 public static bool  windowsAuthentication_Enabled(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.WindowsAuthentication.notNull())
     {
         return(tmConfig.WindowsAuthentication.Enabled);
     }
     return(false);
 }
Beispiel #6
0
 public static bool  emailAdminOnNewUsers(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.EmailAdmin_On_NewUsers);
     }
     return(false);
 }
Beispiel #7
0
 public static bool  newAccountsEnabled(this TMConfig tmConfig)
 {
     if (tmConfig.notNull() && tmConfig.TMSecurity.notNull())
     {
         return(tmConfig.TMSecurity.NewAccounts_Enabled);
     }
     return(false);
 }
Beispiel #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));
 }