Пример #1
0
 public IisVirtualDirectoryOptions DisableAllAuthenticationBut(IISAuthenticationMode enabledAuthenticationType)
 {
     foreach (IISAuthenticationMode mode in Enum.GetValues(typeof(IISAuthenticationMode)))
     {
         AuthenticationToSet.Add(mode, mode == enabledAuthenticationType);
     }
     return(this);
 }
Пример #2
0
 public IisVirtualDirectoryOptions SetAuthentication(IISAuthenticationMode authenticationType, bool enabled)
 {
     if (AuthenticationToSet.ContainsKey(authenticationType))
     {
         AuthenticationToSet[authenticationType] = enabled;
     }
     else
     {
         AuthenticationToSet.Add(authenticationType, enabled);
     }
     return(this);
 }
Пример #3
0
 public static void SetAuthenticationMode(DirectoryEntry siteOrVDir, IISAuthenticationMode authMode)
 {
     SetProperty(siteOrVDir, "AuthFlags", (int)authMode);
 }
Пример #4
0
        public static void SetAuthenticationMode(string serverName, int siteID, string appVDir, IISAuthenticationMode authMode)
        {
            DirectoryEntry app = GetVDir(serverName, siteID, appVDir);

            SetAuthenticationMode(app, authMode);
        }
Пример #5
0
 public static void SetAuthenticationMode(DirectoryEntry siteOrVDir, IISAuthenticationMode authMode)
 {
     SetProperty(siteOrVDir, "AuthFlags", (int)authMode);
 }
Пример #6
0
 public static void SetAuthenticationMode(string serverName, int siteID, string appVDir, IISAuthenticationMode authMode)
 {
     DirectoryEntry app = GetVDir(serverName, siteID, appVDir);
     SetAuthenticationMode(app, authMode);
 }
Пример #7
0
 public IisVirtualDirectoryOptions DisableAllAuthenticationBut(IISAuthenticationMode enabledAuthenticationType) {
    foreach(IISAuthenticationMode mode in Enum.GetValues(typeof(IISAuthenticationMode))) {
       AuthenticationToSet.Add(mode, mode == enabledAuthenticationType);
    }
    return this;
 }
Пример #8
0
 public IisVirtualDirectoryOptions SetAuthentication(IISAuthenticationMode authenticationType, bool enabled) {
    if(AuthenticationToSet.ContainsKey(authenticationType)) { AuthenticationToSet[authenticationType] = enabled; } else {
       AuthenticationToSet.Add(authenticationType, enabled);
    }
    return this;
 }