Esempio n. 1
0
        public static Sandbox UseTranform(this Sandbox sandbox, string name = DefaultName, Action <dynamic> config = null)
        {
            var grain = new TransformGrain(name);

            sandbox.Add(grain);

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

            return(sandbox);
        }
        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. 3
0
        public static Sandbox UseLocalDb(this Sandbox sandbox, string name = "LocalDb", Action <dynamic, ILocalDbConfiguration> config = null)
        {
            var grain = new LocalDbGrain(name);

            sandbox.Add(grain);

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

            return(sandbox);
        }