Esempio n. 1
0
        public void Create_A_VirtualDiretory()
        {
            var task = new Iis6Task
                           {
                               PathOnServer = "E:\\FHLBApp\\FHLBank.Security.Web",
                               ServerName = "srvtest19",
                               VdirPath = "Test_dk",
                               WebsiteName = "Exchequer",
                               AppPoolName = "Test_dk"
                           };

            var output = task.Execute();
            foreach (var item in output.Results)
            {
                Console.WriteLine(item.Message);
            }
        }
Esempio n. 2
0
        public void Create_A_VirtualDiretory()
        {
            var task = new Iis6Task
                           {
                               PathOnServer = "C:\\Web\\FHLBank.Security.Web.Test",
                               ServerName = "JASON-W2K3-VM",
                               VirtualDirectoryPath = "Test_dk",
                               WebsiteName = "Default Web Site",
                               AppPoolName = "Test_dk"
                           };

            var output = task.Execute();
            foreach (var item in output.Results)
            {
                Console.WriteLine(item.Message);
            }
        }