Exemplo n.º 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;
 }
Exemplo n.º 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;
 }