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()); }); }
public override void OnConfigure(INodeConfigurator c) { c.UseWindsorContainer(); c.UseWindsorWcfProxyFactory(); c.ForDataAccess().UseMongoDatabase(Configured.From.AppSettings("ConnectionString")).AsDomainStorage(); c.OnStartupPerform<DataAccessConfiguration>(); c.OnStartupPerform<WcfServicesRegistration>(); }
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>(); }
public override void OnConfigure(INodeConfigurator c) { c.UseWindsorContainer(); c.ForDataAccess().Use(new InMemoryDataAccessProvider()).AsDomainStorage(); }