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