您好我已经在我的WCF服务中添加了一个owin启动类
using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(SampleService.StartupClass))]
namespace SampleService
{
public class StartupClass
{
public void Configuration(IAppBuilder app)
{
// For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888
}
}
}
但似乎配置方法没有激活我已经在正常的Web应用程序中尝试了它的工作。但是在WCF中我没有错过什么?这就是为什么它没有解雇我的WCF应用程序,请您就此提出任何想法?
答案 0 :(得分:2)
WCF还没有支持OWIN。如果您想自己托管WCF而不使用IIS,请查看http://msdn.microsoft.com/en-us/library/ee939340.aspx。
查看http://owin.org/#projects了解OWIN的支持项目。