0
WCF
等效於ActionFilterAttribute
是什麼?在REST WCF .net 4.0中相當於ActionFilterAttribute
我有一個REST服務,它看起來像下面
[WebInvoke(Method = "POST", UriTemplate = "/")]
public User CreateBookMark(BookMark bm)
{
User authenticateUser = GetUserSomeHow();
//do stuff
}
我想改變這下面
[WebInvoke(Method = "POST", UriTemplate = "/")]
public User CreateBookMark(BookMark bm, User authenticateUser)
{
//do stuff
}
你有一個你將如何做的例子嗎? – 2010-08-11 17:33:37