有没有类似于 Ruby 的 Sinatra 的 .NET 框架?

发布于 2024-08-04 20:03:56 字数 332 浏览 1 评论 0原文

有谁知道是否有类似于 Ruby 的 Sinatra 的 .NET 库/API?

只是想知道,随着 ASP.NET MVC、WCF 和 .NET 3.5 中新的路由 API 的出现,这似乎是一种可能性。

更新:最佳答案链接已过时,因此请查看 Nancy @ https://github.com/NancyFx/Nancy

Does anyone know if there is a .NET library/API similar to Ruby's Sinatra?

Just wondering since with the new Routing API in ASP.NET MVC, WCF and .NET 3.5, it seems like a possibility.

UPDATED: Best answer link is stale so check out Nancy @ https://github.com/NancyFx/Nancy

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

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

发布评论

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

评论(5

2024-08-11 20:03:56

有一个名为 Nancy for .NET 的新框架,它受到 Sinatra 的启发,看起来很有前途。但它仍处于非常早期的状态。

您可以在这里阅读更多相关信息: http://elegantcode.com/2010/11/28/introducing-nancy-a-lightweight-web-framework-inspired-by-sinatra/

There is a new framework called Nancy for .NET which is inspired by Sinatra and looks promising. But it is still in a very early state.

You can read more about it here: http://elegantcode.com/2010/11/28/introducing-nancy-a-lightweight-web-framework-inspired-by-sinatra/ and

吃→可爱长大的 2024-08-11 20:03:56

现在 .NET 上似乎有很多这样的微型 Web 框架:

Nancy这里是HanselMinutes 播客与创作者 Andreas Håkansson
Nina:“Nina 是 .Net 平台的 Web 微框架,受到 Sinatra 的启发”
Kayak:“Kayak 是一个用 C# 编写的异步 HTTP 服务器”
马诺斯Hearding Code 采访创始人 Jackson Harper
Jessica 是“出于好奇而在 .NET 中编写的一个微型 Web 框架,其灵感来自 Ruby 的 Sinatra”。

有一篇不错的博客文章,作者:我在 Mike Hadlow 中找到了上述链接,他对每个链接都进行了详细介绍。只是想我应该大声疾呼这些项目,在 .NET 世界中看到这样的发展真是令人兴奋。

There seems to be a host of these micro web frameworks on .NET now:

Nancy: Here is a HanselMinutes podcast with the creator Andreas Håkansson
Nina: "Nina is a web microframework for the .Net platform, inspired by Sinatra"
Kayak: "Kayak is an asynchronous HTTP server written in C#"
Manos: Interview with the creator Jackson Harper on Hearding Code
Jessica is "a micro web framework written out of curiosity in .NET, inspired by Ruby's Sinatra."

There is good blog article by Mike Hadlow where I picked up the above links and he goes into good detail on each. Just thought I'd shoutout these projects, it's exciting to see such development in the .NET world.

忘你却要生生世世 2024-08-11 20:03:56

您可能还想查看 OpenRasta。这是一个漂亮、干净的 REST 框架。我不知道它是否使用 MS 路由库,但据我所知,它的路由语法即使不相同,也非常相似。另外,IronRuby 现在似乎能够运行 Sinatra 和 Rack,并且 IronRuby 网站有 启动和运行的说明,因此如果您想在.NET环境。

You may also want to check out OpenRasta. It is a nice, clean REST framework. I don't know if it uses the MS routing libraries or not, but from what I can tell it's routing syntax is very similar, if not identical. Also, it looks like IronRuby is capable of running Sinatra and Rack now, and the IronRuby website has instructions for getting it up and running, so an alternative may not be required if you want to run Sinatra in a .NET environment.

邮友 2024-08-11 20:03:56

看来 Martin 框架受到了 Sinatra 的启发 ,但它不是一个端口。不过它确实使用了您提到的新路由 API。

It seems that the Martin framework is inspired by Sinatra, but it is not a port. It does use the new routing API that you mentioned though.

左耳近心 2024-08-11 20:03:56

你可以测试Manos https://github.com/jacksonh/manos是一个基于Sinatra的轻量级框架。

我没有找到 Nancy 框架,你能给我正确的网址吗?

You can test Manos https://github.com/jacksonh/manos is a lightweight framework based in Sinatra.

I've not found the Nancy Framework, can you give me the correct url ?

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