public IISExpress(Parameters parameters, string IISExpressPath = @"C:\Program Files (x86)\IIS Express\iisexpress.exe")
        {
            if (!File.Exists(IISExpressPath))
            {
                throw new ArgumentException("IIS Express executable not found", IISExpressPath);
            }
            
            var info = new ProcessStartInfo
                           {
                               FileName = IISExpressPath,
                               Arguments = parameters == null ? "" : parameters.ToString()
                           };

            process = new ProcessEnvelope(Process.Start(info));
        }
示例#2
0
        public IISExpress(Parameters parameters, string IISExpressPath = @"C:\Program Files (x86)\IIS Express\iisexpress.exe")
        {
            if (!File.Exists(IISExpressPath))
            {
                throw new ArgumentException("IIS Express executable not found", IISExpressPath);
            }

            var info = new ProcessStartInfo
            {
                FileName  = IISExpressPath,
                Arguments = parameters == null ? "" : parameters.ToString()
            };

            process = new ProcessEnvelope(Process.Start(info));
        }