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

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -