Пример #1
0
 public Iis6WebSite()
 {
     Bindings = new[] {new Iis6WebSiteBinding {Port = 80}};
     ScriptMapsToAdd = new Iis6ScriptMap[0];
     Authentication = new[] {Iis6Authentication.Basic, Iis6Authentication.NTLM};
     AppPool = null;
     Started = true;
     AccessFlags = Iis6WebSiteAccessFlags.Read;
 }
Пример #2
0
        private ManagementObject CreateScriptMap(Iis6ScriptMap scriptMap)
        {
            ManagementObject newScriptMap = new ManagementClass(Scope, new ManagementPath("ScriptMap"), null).CreateInstance();

            newScriptMap["Extensions"]      = scriptMap.Extension;
            newScriptMap["Flags"]           = scriptMap.Flags;
            newScriptMap["IncludedVerbs"]   = scriptMap.IncludedVerbs;
            newScriptMap["ScriptProcessor"] = scriptMap.Executable;
            return(newScriptMap);
        }
Пример #3
0
 public Iis6WebSite()
 {
     Bindings = new[] { new Iis6WebSiteBinding {
                            Port = 80
                        } };
     ScriptMapsToAdd = new Iis6ScriptMap[0];
     Authentication  = new[] { Iis6Authentication.Basic, Iis6Authentication.NTLM };
     AppPool         = null;
     Started         = true;
     AccessFlags     = Iis6WebSiteAccessFlags.Read;
 }
Пример #4
0
 private ManagementObject CreateScriptMap(Iis6ScriptMap scriptMap)
 {
     ManagementObject newScriptMap = new ManagementClass(Scope, new ManagementPath("ScriptMap"), null).CreateInstance();
     newScriptMap["Extensions"] = scriptMap.Extension;
     newScriptMap["Flags"] = scriptMap.Flags;
     newScriptMap["IncludedVerbs"] = scriptMap.IncludedVerbs;
     newScriptMap["ScriptProcessor"] = scriptMap.Executable;
     return newScriptMap;
 }