コード例 #1
0
ファイル: Iis6WebSite.cs プロジェクト: nbucket/bounce
 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
ファイル: Iis6WebSite.cs プロジェクト: t3hc13h/bounce
 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;
 }