From 4e929bb300c701df3ba764041599917409973efd Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 5 Dec 2014 11:49:05 -0800 Subject: [PATCH] Stop setting WebRoot explicitly. --- src/MusicStore/Program.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/MusicStore/Program.cs b/src/MusicStore/Program.cs index 0d086e2e3f..8609c15924 100644 --- a/src/MusicStore/Program.cs +++ b/src/MusicStore/Program.cs @@ -29,7 +29,6 @@ namespace MusicStore config.AddCommandLine(args); var serviceCollection = HostingServices.Create(_hostServiceProvider); - serviceCollection.AddSingleton(); 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 configure) : base(env, configure) - { - WebRoot = "wwwroot"; - } - } } } \ No newline at end of file