Does OWin support WCF?

a 夏天 提交于 2019-12-19 01:14:04

问题


I have a c# project that exposes services via WebApi and also via WCF. It works under IIS. Now I need to offer it as self host solution. I cannot find documentation about Owin and how to expose WCF services. Does OWin support WCF?


回答1:


I think the question should be the other way around. Does WCF support OWIN?

As I understand, OWIN offers the infrastructure needed to abstract away the web server. However, whatever framework you want to use on it must have an OWIN implementation, which I think WCF does not.

Nonetheless, you can still offer a self hosted application using OWIN or WebApi SelfHost for WebApi combining with a Self Hosted solution for the WCF as described in the documentation for WCF -> http://msdn.microsoft.com/en-us/library/ee939340.aspx




回答2:


WCF is not supported on OWIN at this point of time. Owin.org > Projects has information on the supported frameworks on OWIN.



来源:https://stackoverflow.com/questions/20198935/does-owin-support-wcf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!