Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 5308

Windows Service hosting ASP.NET Core Web API

$
0
0

Visual Studio 2017 project to demo how to host a Web API or WebSockets server locally as a Windows Service.
Possible uses:
- Replace ActiveX dependencies blocking the migration to modern browsers.
- Use as REST wrapper for legacy 32- or 64-bit DLLs.
- Access local system information such as registry keys or software versions for helpdesks.
- Access specialized hardware such as printers, scanners etc.

Security:
CORS should be used to restrict browser access to approved domains (white list), sample included.
- Sample MVC filter to allow only requests from localhost also included.

Source code: windows-service-dotnet-core-webapi


Viewing all articles
Browse latest Browse all 5308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>