Пример #1
0
        private IISExpressHost(Parameters parameters, IDictionary <string, string> environmentVariables = null,
                               string iisExpressPath = null)
        {
            var configuration = new Configuration
            {
                EnvironmentVariables = environmentVariables,
                IISExpressPath       = iisExpressPath,
                ProcessParameters    = parameters
            };

            process = new IISExpressProcess(configuration);
        }
        public void Dispose()
        {
            if (process == null)
            {
                return;
            }

            var toDispose = process;

            process = null;

            toDispose.Dispose();
        }
Пример #3
0
        public IISExpressHost(string webApplicationName, int portNumber,
                              IDictionary <string, string> environmentVariables = null, string iisExpressPath = null)
        {
            var configuration = new Configuration
            {
                IISExpressPath       = iisExpressPath,
                EnvironmentVariables = environmentVariables,
                ProcessParameters    = new PathParameters
                {
                    Path    = Locator.GetFullPath(webApplicationName),
                    Port    = portNumber,
                    Systray = false
                }
            };

            process = new IISExpressProcess(configuration);
        }
 public IISExpressHost(string webApplicationName, int portNumber)
 {
     process = new IISExpressProcess(new WebApplication(webApplicationName, portNumber));
 }