예제 #1
0
        public static IAdvProcess StartIISExpress(this ICakeContext context,
            ConfigBasedIISExpressSettings settings)
        {
            if (context == null)
                throw new ArgumentNullException("context");
            if (settings == null)
                throw new ArgumentNullException("settings");

            var runner = new ConfigBasedIISExpressRunner(context.FileSystem, context.Environment,
                context.ProcessRunner, context.Globber, context.Registry, context.Log,
                new AdvProcessRunner(context.Environment, context.Log));

            return runner.StartServer(settings);
        }
예제 #2
0
        public static IAdvProcess StartIISExpress(this ICakeContext context,
                                                  ConfigBasedIISExpressSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            var runner = new ConfigBasedIISExpressRunner(context.FileSystem, context.Environment,
                                                         context.ProcessRunner, context.Globber, context.Registry, context.Log,
                                                         new AdvProcessRunner(context.Environment, context.Log));

            return(runner.StartServer(settings));
        }