public static Sandbox UseIisExpress(this Sandbox sandbox, string name = DefaultName, Action <dynamic, IIisExpressConfiguration> config = null)
        {
            var grain = new IisExpressGrain(name);

            sandbox.Add(grain);

            if (config != null)
            {
                config((dynamic)sandbox, grain);
            }

            return(sandbox);
        }
Esempio n. 2
0
        public static Core.Sandbox UseIisExpress(this Core.Sandbox sandbox, Action <dynamic, IIisExpressConfiguration> config = null)
        {
            var dynamicSb = sandbox as dynamic;
            var grain     = new IisExpressGrain();

            dynamicSb.IisExpress = grain;

            if (config != null)
            {
                config(sandbox, grain);
            }

            return(sandbox);
        }