예제 #1
0
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            base.ConfigureApplicationContainer(container);

            container.Register(typeof(ISpamShieldService), typeof(SpamShieldService));
            container.Register(typeof(ICache), typeof(RuntimeCache));

            RegisterIViewProjections(container);
            TagExtension.SetupViewProjectionFactory(container.Resolve <IViewProjectionFactory>());
            RegisterICommandInvoker(container);
            container.Register <DB.AutoBox>(this.Database);
            //container.Register(typeof(MongoDatabase), (cContainer, overloads) => Database);
        }
예제 #2
0
        protected override void ConfigureApplicationContainer(TinyIoCContainer container)
        {
            base.ConfigureApplicationContainer(container);

            container.Register(typeof(ISpamShieldService), typeof(SpamShieldService));
            container.Register(typeof(ICache), typeof(RuntimeCache));

            RegisterIViewProjections(container);
            TagExtension.SetupViewProjectionFactory(container.Resolve <IViewProjectionFactory>());
            RegisterICommandInvoker(container);

            var db = Database("ibox");

            container.Register(db);
        }