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); }
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); }