Fixed build break

This commit is contained in:
Kiran Challa 2016-04-28 14:30:34 -07:00
parent fd5384d179
commit 025a781b9a
1 changed files with 2 additions and 16 deletions

View File

@ -29,24 +29,10 @@ namespace MusicStore
// 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.UseWebListener(options =>
{
// Set up NTLM authentication for WebListener as follows.
// For IIS and IISExpress use inetmgr to setup NTLM authentication on the application or
// modify the applicationHost.config to enable NTLM.
builder.UseWebListener(options =>
{ {
options.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM; options.Listener.AuthenticationManager.AuthenticationSchemes = AuthenticationSchemes.NTLM;
}); });
} }
else
{
builder.UseWebListener();
}
}
else
{
builder.UseKestrel();
}
var host = builder.Build(); var host = builder.Build();