Does the .NET framework provide any type of HTTP server class that I can
embed in my application?
>
More or less, in the form of HttpListener, which leverages the Windows
kernel-mode drive for HTTP (introduced with Windows 2003 and also supported
on Windows XP SP2).
HttpListener is rather low-level. If you want to offer service endpoints to
clients (or you can package your services as such), using WCF's ServiceHost
is much more convenient.
"Jon Berry" <noway@jose.bla hwrote in message
news:eNvF9Od5IH A.4908@TK2MSFTN GP04.phx.gbl...
Does the .NET framework provide any type of HTTP server class that I can
embed in my application?
Not the framework itself, but if you search for "Cassini" you will find a
server that is very similar to the one that Visual Studio starts internally
when you run a web project on the file system. Free download from Microsoft,
source code included (if I remember correctly).
Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.
Comment