示例#1
0
        public override void OnConfigure(INodeConfigurator c)
        {
            c.UseWindsorContainer();
            c.UseWindsorWcfProxyFactory();

            c.ForDataAccess().UseMongoDatabase(Configured.From.AppSettings("ConnectionString")).AsDomainStorage();

            c.OnStartupPerform<DataAccessConfiguration>();
            c.OnStartupPerform<WcfServicesRegistration>();
        }
示例#2
0
        public override void OnConfigure(INodeConfigurator c)
        {
            c.UseWindsorContainer();
            c.UseWindsorWcfProxyFactory();
            c.ForDataAccess().UseMongoDatabase(Configured.From.AppSettings("ConnectionString"))
                .AsInjectedContext(cc => cc.BoundToWebRequest());

            c.OnStartupPerform<QueryRegistration>();
            c.OnStartupPerform<WcfClientsRegistration>();
        }
示例#3
0
            public override void OnConfigure(INodeConfigurator c)
            {
                c.UseWindsorContainer();
                c.ForDataAccess()
                    .UseMongoDatabase("localhost:27001", "Anodyne-Testing")
                    .AsDomainStorage();
                c.ForDataAccess("ReadModel")
                    .UseMongoDatabase("localhost:27001", "Anodyne-Testing-Read")
                    .AsInjectedContext();

                c.OnStartupPerform(i =>
                    {
                        i.DataAccess.Default.OnNative(d => d.Drop());
                        i.DataAccess["ReadModel"].OnNative(d => d.Drop());
                    });
            }
示例#4
0
 public override void OnConfigure(INodeConfigurator c)
 {
     c.UseWindsorContainer();
     c.ForDataAccess().Use(new InMemoryDataAccessProvider()).AsDomainStorage();
 }