Stop setting WebRoot explicitly.

This commit is contained in:
Chris Ross 2014-12-05 11:49:05 -08:00
parent a67bd6820c
commit 4e929bb300
1 changed files with 0 additions and 9 deletions

View File

@ -29,7 +29,6 @@ namespace MusicStore
config.AddCommandLine(args);
var serviceCollection = HostingServices.Create(_hostServiceProvider);
serviceCollection.AddSingleton<IHostingEnvironment, TestHostingEnvironment>();
var services = serviceCollection.BuildServiceProvider();
var context = new HostingContext()
@ -54,13 +53,5 @@ namespace MusicStore
}
return Task.FromResult(0);
}
private class TestHostingEnvironment : HostingEnvironment
{
public TestHostingEnvironment(IApplicationEnvironment env, IEnumerable<IConfigureHostingEnvironment> configure) : base(env, configure)
{
WebRoot = "wwwroot";
}
}
}
}