Example #1
0
        public IISTools(IDomainContext context, string serverName = "localhost")
        {
            handle = new IISServerHandle(context, serverName);

            ApplicationPool = new ApplicationPoolTools(handle);
            WebSite         = new WebSiteTools(handle);
            WebApplication  = new WebApplicationTools(handle);
        }
Example #2
0
        public IISTools(IDomainContext context, string serverName = "localhost")
        {
            this.Context = context;

            Server = ServerManager.OpenRemote(serverName);

            ApplicationPool = new ApplicationPoolTools(context, Server);
            WebSite         = new WebSiteTools(context, Server);
            WebApplication  = new WebApplicationTools(context, Server);
        }