React to WebListener rename
This commit is contained in:
parent
af82488d60
commit
cd5a789b2b
|
|
@ -24,7 +24,7 @@ namespace MusicStore.Standalone
|
||||||
.UseStartup("MusicStore.Standalone")
|
.UseStartup("MusicStore.Standalone")
|
||||||
.UseContentRoot(currentExecutingAssemblyFileInfo.Directory.FullName);
|
.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") ??
|
var environment = builder.GetSetting("environment") ??
|
||||||
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
||||||
|
|
@ -34,15 +34,15 @@ namespace MusicStore.Standalone
|
||||||
// Set up NTLM authentication for WebListener like below.
|
// Set up NTLM authentication for WebListener like below.
|
||||||
// For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or
|
// For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or
|
||||||
// modify the applicationHost.config to enable NTLM.
|
// modify the applicationHost.config to enable NTLM.
|
||||||
builder.UseWebListener(options =>
|
builder.UseHttpSys(options =>
|
||||||
{
|
{
|
||||||
options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM;
|
options.Authentication.Schemes = AuthenticationSchemes.NTLM;
|
||||||
options.ListenerSettings.Authentication.AllowAnonymous = false;
|
options.Authentication.AllowAnonymous = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
builder.UseWebListener();
|
builder.UseHttpSys();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*",
|
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.Mvc": "1.2.0-*",
|
"Microsoft.AspNetCore.Mvc": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.Mvc.TagHelpers": "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.Session": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*",
|
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*",
|
"Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
|
using Microsoft.AspNetCore.Server.HttpSys;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Net.Http.Server;
|
|
||||||
|
|
||||||
namespace MusicStore
|
namespace MusicStore
|
||||||
{
|
{
|
||||||
|
|
@ -19,7 +19,7 @@ namespace MusicStore
|
||||||
.UseIISIntegration()
|
.UseIISIntegration()
|
||||||
.UseStartup("MusicStore");
|
.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") ??
|
var environment = builder.GetSetting("environment") ??
|
||||||
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
|
||||||
|
|
@ -29,15 +29,15 @@ namespace MusicStore
|
||||||
// Set up NTLM authentication for WebListener like below.
|
// Set up NTLM authentication for WebListener like below.
|
||||||
// For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or
|
// For IIS and IISExpress: Use inetmgr to setup NTLM authentication on the application vDir or
|
||||||
// modify the applicationHost.config to enable NTLM.
|
// modify the applicationHost.config to enable NTLM.
|
||||||
builder.UseWebListener(options =>
|
builder.UseHttpSys(options =>
|
||||||
{
|
{
|
||||||
options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.NTLM;
|
options.Authentication.Schemes = AuthenticationSchemes.NTLM;
|
||||||
options.ListenerSettings.Authentication.AllowAnonymous = false;
|
options.Authentication.AllowAnonymous = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
builder.UseWebListener();
|
builder.UseHttpSys();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*",
|
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.Mvc": "1.2.0-*",
|
"Microsoft.AspNetCore.Mvc": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.Mvc.TagHelpers": "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.Session": "1.2.0-*",
|
||||||
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*",
|
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*",
|
||||||
"Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*",
|
"Microsoft.EntityFrameworkCore.InMemory": "1.2.0-*",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue