문제

I want the ConfigurableBootstrapper to discover all my modules rather than have to list them all. I cant find the property for this. I dont want to have to list the type array explicitly

  var bootstrapper = new ConfigurableBootstrapper(with =>
            {
                with.Modules(new Type[] {typeof (CompanyModule), typeof (UserModule)});
                with.Dependency<IDocumentSession>(RavenEmbeddedStore.Instance.Store.OpenSession());
            });
도움이 되었습니까?

해결책

It seems like AllDiscoveredModules() is the method you need:

var bootstrapper = new ConfigurableBootstrapper(with =>
        {
            with.AllDiscoveredModules();
            ...
        });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top