Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Disable Auto Registration in ConfigurableBootstrapper #643

Closed
thecodejunkie opened this issue Jun 14, 2012 · 2 comments · Fixed by #644
Closed

Disable Auto Registration in ConfigurableBootstrapper #643

thecodejunkie opened this issue Jun 14, 2012 · 2 comments · Fixed by #644
Assignees
Milestone

Comments

@thecodejunkie
Copy link
Member

If you use the ConfigurableBootstrapper in your Nancy.Testing tests, then autoregistration is enabled by default. This can have a huge impact on performance if you have many references in your project. Instead it should be disabled by default so you use the Dependency/Dependencies helpers, to register dependencies (to help you test more in isolation) with the option to opt-in for autoregistration using EnableAutoRegistration.

@liddellj
Copy link
Contributor

Glad this has been changed - just narrowed down a huge performance issue to the auto-registration, disabling it solved it. Nice one!

@viniston
Copy link

I am very new to the nancy .Anyone can you share me the bootstrap class which will override the nancy auto-registration to disable that.....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants