diff --git a/samples/MusicStore.Standalone/Program.cs b/samples/MusicStore.Standalone/Program.cs index e27b94d2f5..531666a060 100644 --- a/samples/MusicStore.Standalone/Program.cs +++ b/samples/MusicStore.Standalone/Program.cs @@ -24,7 +24,7 @@ namespace MusicStore.Standalone .UseStartup("MusicStore.Standalone") .UseContentRoot(currentExecutingAssemblyFileInfo.Directory.FullName); - if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal)) + if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.HttpSys", System.StringComparison.Ordinal)) { var environment = builder.GetSetting("environment") ?? Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); @@ -34,15 +34,15 @@ namespace MusicStore.Standalone // Set up NTLM authentication for WebListener like below. // For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or // modify the applicationHost.config to enable NTLM. - builder.UseWebListener(options => + builder.UseHttpSys(options => { - options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM; - options.ListenerSettings.Authentication.AllowAnonymous = false; + options.Authentication.Schemes = AuthenticationSchemes.NTLM; + options.Authentication.AllowAnonymous = false; }); } else { - builder.UseWebListener(); + builder.UseHttpSys(); } } else diff --git a/samples/MusicStore.Standalone/project.json b/samples/MusicStore.Standalone/project.json index f816d83579..1db10d4c03 100644 --- a/samples/MusicStore.Standalone/project.json +++ b/samples/MusicStore.Standalone/project.json @@ -56,7 +56,7 @@ "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*", "Microsoft.AspNetCore.Mvc": "1.2.0-*", "Microsoft.AspNetCore.Mvc.TagHelpers": "1.2.0-*", - "Microsoft.AspNetCore.Server.WebListener": "1.2.0-*", + "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*", "Microsoft.AspNetCore.Session": "1.2.0-*", "Microsoft.AspNetCore.StaticFiles": "1.2.0-*", "Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*", diff --git a/samples/MusicStore/Program.cs b/samples/MusicStore/Program.cs index 7a92f79209..950363c269 100644 --- a/samples/MusicStore/Program.cs +++ b/samples/MusicStore/Program.cs @@ -1,7 +1,7 @@ using System; using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Server.HttpSys; using Microsoft.Extensions.Configuration; -using Microsoft.Net.Http.Server; namespace MusicStore { @@ -19,7 +19,7 @@ namespace MusicStore .UseIISIntegration() .UseStartup("MusicStore"); - if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.WebListener", System.StringComparison.Ordinal)) + if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.HttpSys", System.StringComparison.Ordinal)) { var environment = builder.GetSetting("environment") ?? Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); @@ -29,15 +29,15 @@ namespace MusicStore // Set up NTLM authentication for WebListener like below. // For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or // modify the applicationHost.config to enable NTLM. - builder.UseWebListener(options => + builder.UseHttpSys(options => { - options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM; - options.ListenerSettings.Authentication.AllowAnonymous = false; + options.Authentication.Schemes = AuthenticationSchemes.NTLM; + options.Authentication.AllowAnonymous = false; }); } else { - builder.UseWebListener(); + builder.UseHttpSys(); } } else diff --git a/samples/MusicStore/project.json b/samples/MusicStore/project.json index dbbb33069d..5be1dd756d 100644 --- a/samples/MusicStore/project.json +++ b/samples/MusicStore/project.json @@ -45,7 +45,7 @@ "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*", "Microsoft.AspNetCore.Mvc": "1.2.0-*", "Microsoft.AspNetCore.Mvc.TagHelpers": "1.2.0-*", - "Microsoft.AspNetCore.Server.WebListener": "1.2.0-*", + "Microsoft.AspNetCore.Server.HttpSys": "1.2.0-*", "Microsoft.AspNetCore.Session": "1.2.0-*", "Microsoft.AspNetCore.StaticFiles": "1.2.0-*", "Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*",