public AnonymousAuthentication( string site, AppCmd appCmd) { Enabled = bool.Parse(appCmd.GetLine($"list config \"{site}\" /section:system.webServer/security/authentication/anonymousAuthentication /text:enabled")); Username = appCmd.GetLine($"list config \"{site}\" /section:system.webServer/security/authentication/anonymousAuthentication /text:username"); Password = appCmd.GetLine($"list config \"{site}\" /section:system.webServer/security/authentication/anonymousAuthentication /text:password"); }
public App( string name, AppCmd appCmd) { Name = name; Path = appCmd.GetLine($"list app \"{Name}\" /text:path"); ApplicationPool = appCmd.GetLine($"list app \"{Name}\" /text:apppool.name"); Authentication = new Authentication(Name, appCmd); VDirs = VDir.ListAll(Name, appCmd); }
public VDir( string name, AppCmd appCmd) { Name = name; Path = appCmd.GetLine($"list vdir /vdir.name:\"{Name}\" /text:path"); PhysicalPath = appCmd.GetLine($"list vdir /vdir.name:\"{Name}\" /text:physicalPath"); Username = appCmd.GetLine($"list vdir /vdir.name:\"{Name}\" /text:username"); Password = appCmd.GetLine($"list vdir /vdir.name:\"{Name}\" /text:password"); }
public Site( string name, AppCmd appCmd) { Name = name; Console.WriteLine($"\t{Name}"); Bindings = appCmd.GetLine($"list site \"{Name}\" /text:bindings"); Apps = App.ListAll(Name, appCmd); }
public AppPool( string name, AppCmd appCmd) { Name = name; Console.WriteLine($"\t{Name}"); IdentityType = appCmd.GetLine($"list apppool \"{Name}\" /text:processmodel.identityType"); Username = appCmd.GetLine($"list apppool \"{Name}\" /text:processmodel.username"); Password = appCmd.GetLine($"list apppool \"{Name}\" /text:processmodel.password"); ManagedRuntimeVersion = appCmd.GetLine($"list apppool \"{Name}\" /text:managedRuntimeVersion"); ManagedPipelineMode = appCmd.GetLine($"list apppool \"{Name}\" /text:managedPipelineMode"); Enable32BitAppOnWin64 = bool.Parse(appCmd.GetLine($"list apppool \"{Name}\" /text:enable32BitAppOnWin64")); }