c# - Is UseIISPlatformHandler() deprecated correctly to UseIIS()? -
in this place, there's information on changes core follows.
public void configure(iapplicationbuilder app, iloggerfactory loggerfactory) { ... // remove call app.useiisplatformhandler(); handled useiis in main. // remove call app.useforwardedheaders(); handled useiis in main. ... }
however, when checking out contents of method, there's no such call useiis(). nearest 1 useiisintegration() it's commented if substitutes useforwardedheaders().
public static void main(string[] args) { var host = new webhostbuilder() .usedefaultconfiguration(args) .useserver("microsoft.aspnetcore.server.kestrel") // replaces call useiisplatformhandlerurl() .useiisintegration() .usestartup<startup>() .build(); host.run(); }
what misunderstanding?
the issue rather old , things have changed since then. on right track, though.
the useiisplatformhandler
call indeed moved startup program start , has been renamed useiisintegration
.
Comments
Post a Comment