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