Reacting to hosting changes

This commit is contained in:
Praburaj 2015-02-26 12:19:11 -08:00
parent fa7956d814
commit 97d9b2e385
1 changed files with 3 additions and 2 deletions

View File

@ -28,12 +28,13 @@ namespace MusicStore
var serviceCollection = HostingServices.Create(_hostServiceProvider);
var services = serviceCollection.BuildServiceProvider();
var applicationLifetime = services.GetRequiredService<IApplicationLifetime>();
var context = new HostingContext()
{
Services = services,
ApplicationLifetime = applicationLifetime,
Configuration = config,
ServerName = "Microsoft.AspNet.Server.WebListener",
ServerFactoryLocation = "Microsoft.AspNet.Server.WebListener",
ApplicationName = "MusicStore"
};