public static IAdvProcess StartIISExpress(this ICakeContext context,
            AppPathBasedIISExpressSettings settings)
        {
            if (context == null)
                throw new ArgumentNullException("context");
            if (settings == null)
                throw new ArgumentNullException("settings");

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

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

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

            return(runner.StartServer(settings));
        }