Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Use IHostingEnvironment to determine application identifier #240

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

natemcmaster
Copy link
Contributor

Reverses changes made in #230, which were originally made because hosting was not going to support ns2.0.

Expect a hosting PR too soon.


if (discriminator == null)
{
discriminator = services.GetService<IHostingEnvironment>()?.ContentRootPath;
Copy link
Member

Choose a reason for hiding this comment

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

I liked the new implementation better. Rather than explicitly calling out to IHostingEnvironment, instead register an IApplicationDiscriminator that does it.

@natemcmaster
Copy link
Contributor Author

🆙 📅

@natemcmaster natemcmaster merged commit 285b973 into dev Jun 2, 2017
@JunTaoLuo JunTaoLuo deleted the namc/flop-flip branch June 2, 2017 19:27
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