替代的HttpListener? [英] Alternative to HttpListener?

查看:341
本文介绍了替代的HttpListener?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的是迄今为止使用的HttpListener提供一个小的独立的HTTP服务器的应用程序。不过,我最近发现的HttpListener必须以管理员身份运行,这是不是总是将是可能的。

I'm developing an application that is so far using HttpListener to provide a small standalone http server. However, I've recently discovered that HttpListener needs to be run as Administrator, which is not always going to be possible.

什么是最好的选择呢?我需要的HTTP GET和POST,这两者都不能简单地读/于文件系统写入文件,他们需要运行自定义.NET code。

What would the best alternative be? I need http GET and POST, both of which are not simply reading/writing files on the filesystem, they need to run custom .Net code.

我的研究,到目前为止造就了卡西尼号,但据我可以告诉大家,我会写一个定制版本。还有什么事吗?在partiular东西相同的接口的HttpListener,但是,这并不需要管理员权限将是惊人的!

My research so far has brought up Cassini, but as far as I can tell, I would have to write a custom version. Is there anything else? In partiular something with the same interface as HttpListener, but that does not require Administrator privileges would be amazing!

推荐答案

这是我找到一个替代方案是 C#网络服务器在codePLEX。

One alternative that I've found is C# Webserver on CodePlex.

......它可以嵌入任何.NET应用程序灵活的HTTP服务器,它具有这样使用模块添加的功能模块化设计,该服务器还支持REST和所有的HTTP动词。

它有我想象类似于System.Net.HttpListener一个的HttpListener类,但我没有使用其中任何一个还没有,所以我不能肯定。

It has an HttpListener class which I imagine is similar to System.Net.HttpListener, but I haven't used either one of them yet so I can't be certain.

这篇关于替代的HttpListener?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆