MVC2 的进程内 Web 服务器

发布于 2024-09-27 01:57:22 字数 394 浏览 1 评论 0原文

我正在开发一个需要进程内 Web 服务器来运行基于 Web 的 UI 的项目。 我遇到的最好的选择是 CassiniDev

编辑:做了一些测试并注意到问题不是同步方式处理请求,它与 tcp-connects 有关。 fiddler 显示 1 秒作为 tcp 连接时间。

还有其他选择吗?

这些是主要标准:

  • 必须正在进行中,或者至少 无需任何安装即可使用。

  • 必须能够处理请求 异步。

  • 可免费分发 开源项目。

我还将接受修复 CassiniDev 的补丁作为答案;)

I'm working on a project that requires an in process web server to run the web based UI.
The best option I have come across is CassiniDev

EDIT: did some tests and noticed that issue isn't synchronous way of processing requests, it has to do with tcp-connects. fiddler shows 1 second as the tcp-connect time.

Are there any alternatives?

These are the main criteria:

  • must be in process, or at least
    usable without any installation.

  • must be able to process request
    asynchronously.

  • distributable for free with an
    open-source project.

I will also accept a patch to fix CassiniDev as an answer ;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

平生欢 2024-10-04 01:57:22

我从你的问题中看到两点; 1) 您不想在目标部署系统上安装任何内容 2) 您希望免费分发 Web 服务器位。

不知怎的,我没有理解这些观点背后的意图。为什么要重新分配 Web 服务器位?您仍然可以将源代码开源。由于您为项目选择了 MVC2,因此您已经锁定了自己的供应商。 AFAIK MVC2 不适用于 Windows+IIS 模型以外的任何其他模型(嗯,它是 那里,但是你想这样做吗?)。无论您要在哪里托管此应用程序,您都已经拥有 IIS6/7,并且根据我的说法,您不应该担心网络服务器。

请告诉我此要求背后是否还有其他原因。

I see two points in your question; 1) You don't want to install anything on target deployment system 2)You want to distribute web server bits as free.

Somehow I am not getting the intent behind these points. Why do you want to redistribute web server bits? You can still make you source code open source. Since you have chose MVC2 for your project, you have already vendor locked yourself. AFAIK MVC2 is not available for anything other than Windows+IIS model (well it is there but do you want to do it that way?). Wherever you are going to host this application, you are already going to have IIS6/7 and according to me you should not worry about webserver.

Let me know if there is any other reason behind this requirement.

清风不识月 2024-10-04 01:57:22

Keivan,

我不确定您对此的具体要求,但我建议您看一下 C# WebServer - 由 CodePlex 托管的免费开源项目。

它实现了 ASP.NET MVC 2 技术,您可以在 HAML、Spark 和传统 ASP.Net 视图引擎之间选择视图引擎。

该项目在 1 或 2 个 Dll 中实现(取决于您选择的版本),并且可以嵌入到安装程序中,就像任何其他传统 dll 一样。

对我来说,这似乎是一个稳定可靠的项目。希望它对您以及其他人都有用。

Keivan,

I am not sure about your specific requirements with this, but I do suggest that you take a look at C# WebServer - A free open sourced project hosted by CodePlex.

It implements the ASP.NET MVC 2 technology and you can choose view engines between HAML, Spark and the tradition ASP.Net View engine.

The project is implemented in 1 or 2 Dll's (depending on which version you choose) and can be embedded in the installer program, just like any other traditional dll.

To me, it appears to be a stable and reliable project. Hope it will be useful to you as well as anybody else.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文