开发者

HTTP server using WCF for simple project - is it worth it?

I need to have HTTP server embedded in my .NET application. Simply, there will be two dynamically generated views, but one can said - there will be just two开发者_JAVA技巧 different pages. Is it worth to use WCF as presented in blog post: Building a Basic Web Server Using WCF for such a simple task? Would it be just easier and better in this case to use HttpListener class?


WCF's strength is to serve data to a lot of different clients in a lot of different formats. If this is just going to be a simple web page and the browser is the only client, I would say that WCF is not worth it. ASMX is much simpler and easy to use. WCF is supposed to be the way of the future but that doesnt mean ASMX is totally useless yet.

I have never used the HttpListener class so unfortunately I can't comment on if it is a good idea or not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜