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

Scanning changes #953

Merged
merged 9 commits into from
Feb 19, 2013
Merged

Scanning changes #953

merged 9 commits into from
Feb 19, 2013

Conversation

grumpydev
Copy link
Member

Now the ADATS defaults to only scanning assemblies with a reference to a Nancy assembly (and nancy itself), and the autoregister ignore list is the same as it used to be. Adding additional assemblies to scan is now easier with the addition of the AddAssembliesToScan methods on the ADATS.

Still need to rework the InternalConfiguration to make the type scanning lazy (it's currently done even if you override everything).

Still not 100% sure the AR logic is "correct" (we could be stricter), but would need TinyIoC changes to implement anything better. We could bring it into Nancy and not use AR at all, but I think there are times where you want AR to look at assemblies that you don't want ADATS to (for instance an ISession in a database library - you'll want AR to see that to grab implementations, but you don't want to scan that assembly for configuration types and/or resources)

Also changed the Browser/Configurable bootstrapper default behaviour so it doesn't load all found modules by default, only ones that are specified - added an AllDiscoveredModules option to the configurator to change this behaviour back.

Now the ADATS defaults to only scanning assemblies with a
reference to a Nancy assemly (and nancy itself), and the
autoregister ignore list is the same as it used to be.
Now instead of loading every module it can (which is significantly
more than before), it will only use specified modules unless
AllDiscoveredModules is set, in which case it will revert to the
old behaviour.
Added new methods to ADATS for easily adding assemblies to scan.
thecodejunkie added a commit that referenced this pull request Feb 19, 2013
@thecodejunkie thecodejunkie merged commit b41515f into NancyFx:master Feb 19, 2013
@grumpydev grumpydev deleted the ScanningChanges branch April 7, 2014 09:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants