简体   繁体   中英

How to distribute a Web API 2 web app to my clients?

I would like to distribute a Web API 2 app to my clients, but I want to only give them the output .dll-s and explain to them how to host them in a container as IIS. What is the general way to host the provided .dll-s?

The general way is to host Web API application on IIS. Here is a brief tutorial: http://www.c-sharpcorner.com/UploadFile/2b481f/how-to-host-Asp-Net-web-api-on-iis-server .

An alternative way is to host the Web API application outside IIS in an external app like console/desktop app/windows service and send them the app. Here is a tutorial how to do that: https://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM