.NET Core WebAPI deployment

After calling someone else to write Restful style WebAPI, I feel this is a good thing.

Because it is very simple form; and is sent directly Post / Get request this more underlayer, it is also very versatile.

Versatility of .NET WebService's bad, java call for .NET WebService time, sometimes automatic serialization out some type of .NET runtime automatically recognize what java is not easy.

WebService will eventually have to send various requests, but it is on request and a layer of packaging, it involves a sequence of objects, as well as the xml formatting issues.

And the WebAPI, can really fill after the format parameters agreed transmission request, then obtain the results agreed format.

This is the reason I'm providing an interface with WebAPI.

Deployment Methods

1. WebAPI in the root directory, open the Powershell, enter the command [dotnet publish], to be compiled.

2. In Release directory, open Powershell, enter the command [dotnet xxx.dll], start listening. 

Setting method of port

Guess you like

Origin www.cnblogs.com/fabao/p/12147124.html