在.NET使用什么框架RESTful服务 [英] What framework to use for RESTful Services in .net

查看:277
本文介绍了在.NET使用什么框架RESTful服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,类似的问题已经被问过,但他们大多是过时的。所以在这里,我们又来了:)。我需要实现我们的应用程序完全休息服务层。我的问题是它的框架将是解决这一问题的最好。我只是需要一个很好的框架,让我专注于问题,而不是对REST或什么是必需的。认证是必需的功能。下面是我的一些想法;你觉得呢?

I know that similar questions have been asked, but most of them are out of date. So here we go again :). I need to implement a complete REST service layer for our application. The problem that i have is which framework would be the best to solve this problem. I just need a nice framework that lets me focus on the problem and not on the REST or whatever is required. Authentication is a required feature. Here are some of my ideas; what do you think?


  • WCF:在我看来,这是一个重载的框架,使事情复杂化

  • ServiceStack:似乎是一个不错的,轻巧的,开源替代品。但是,如果他们决定什么停止开发?

  • 使用asp.net mvc的,如自定义实现<一个href=\"http://shouldersofgiants.co.uk/Blog/post/2011/02/07/Creating-a-RESTful-Web-Service-Using-ASPNet-MVC-Part-24-e28093-MVC-3-and-More.aspx\"相对=nofollow>这个,但为什么另起炉灶?

  • WCF: In my opinion this is a overloaded framework that makes things complicated.
  • ServiceStack: Seems to be a nice, lightweight, open source alternative. But what if they decided to stop development?
  • Custom implementation using asp.net mvc such as this, but why reinvent the wheel?

推荐答案

最近一直在玩南希的我自己,我也在考虑<一个HREF =htt​​ps://github.com/jacksonh/manos>马诺斯德单。下面是从南希主页的一个例子。

Been playing with Nancy myself lately and I'm also considering Manos de Mono. Here's the an example from the home page on Nancy.

public class HelloModule : NancyModule
{
    public HelloModule()
    {
        Get["/"] = parameters => "Hello World";
    }
}

这篇关于在.NET使用什么框架RESTful服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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