Mr. T.
Mr. T.

Reputation: 1345

Is WCF an appropriate technology to develop an embedded web server?

We need to embed an HTTP Web Server in a C# 4.0 application and were wondering if WCF is a suitable technology for this purpose?

Upvotes: 0

Views: 533

Answers (2)

Garrett Vlieger
Garrett Vlieger

Reputation: 9494

There are some good suggestions for a .NET embedded web server here:

Embedded Web Server in .NET

To answer your question, WCF can be setup as a web server, and there are examples out there of people doing it. WCF can listen for HTTP requests on port 80, and you can support REST using the WCF REST Starter Kit. However, you are sacrificing some of the capabilities of a more full-featured web server such as redundancy and fault tolerance.

When you say that this is "embedded" web server, in what context will this run?

Upvotes: 1

QrystaL
QrystaL

Reputation: 4966

WCF is a much higher lever of abstraction than a web server. Try Cassini instead.

Upvotes: 1

Related Questions