Not supported any more?

I've been trying to get some custom authentication code for my WCF service and found that one way to this would be through a RequestInterceptor in the REST Starter Kit. However, since the article was published, it seems that Microsoft has done some internal refactoring and Microsoft.ServiceModels.Web was moved to System.ServiceModels.Web. This namespace does not have a RequestInterceptor class in it and I can't find any references to it in the docs.

Does anyone know what the best practice is to do this? I need to add authentication / authorization to a part of my API.

Thanks,
Teja


我建议你看看IDispatchMessageInspector和IClientMessageInspector

链接地址: http://www.djcxy.com/p/26902.html

上一篇: 如何从WCF服务中的HttpContext获取有关错误的信息

下一篇: 不再支持?