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

Removed ADATS dependency in NancyInternalConfiguration #2225

Conversation

thecodejunkie
Copy link
Member

As part of #2221

This one was a bit tricky as we could simply not just take a constructor dependency on ITypeCatalog in NancyInternalConfiguration because of the Default member and WithOverrides-method. I used the same approach that was taken in the #1846 spike. The InternalConfiguration property, on NancyBoostrapperBase<T> changed from plain NancyInternalConfiguration return type into Func<ITypeCatalog, NancyInternalConfiguration> so that we can inject the correct ITypeCatalog into it

This also meant that I had to update how the WithOverrides method was designed internally. It also meant that I had to rework ConfigurableBootstrapper worked. Previously I did modify a NancyInternalConfiguration instance, but it can not do that anymore because of the signature change on the bootstrapper. So instead the configurator build up a list of Action<NancyInternalConfiguration> which is then applied, one-by-one, on top of the NancyInternalConfiguration instance that the ConfigurableBootstrapper will end up using.

@khellang
Copy link
Member

khellang commented Feb 4, 2016

Needs a rebase

@thecodejunkie thecodejunkie force-pushed the remove-adats-dependency-in-nancyinternalconfiguration branch from 135c000 to 6fbce8e Compare February 4, 2016 21:31
@thecodejunkie thecodejunkie force-pushed the remove-adats-dependency-in-nancyinternalconfiguration branch from 6fbce8e to fcfa2a0 Compare February 7, 2016 11:00
@thecodejunkie
Copy link
Member Author

Rebased

ViewFactory = typeof(DefaultViewFactory),
ViewResolver = typeof(DefaultViewResolver),
ViewCache = typeof(DefaultViewCache),
ViewLocationProvider = typeof(FileSystemViewLocationProvider),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only thing I can see that happened here is alphabetical sorting...

khellang added a commit that referenced this pull request Feb 7, 2016
…n-nancyinternalconfiguration

Removed ADATS dependency in NancyInternalConfiguration
@khellang khellang merged commit 6938345 into NancyFx:master Feb 7, 2016
@khellang
Copy link
Member

khellang commented Feb 7, 2016

YOLO! 😁

@thecodejunkie thecodejunkie deleted the remove-adats-dependency-in-nancyinternalconfiguration branch February 17, 2016 07:58
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.

3 participants