【问题标题】:How to add OWIN Startup in WCF service如何在 WCF 服务中添加 OWIN 启动
【发布时间】:2014-10-20 01:16:34
【问题描述】:

嗨,我已经在我的 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 应用程序的原因,请就这方面的任何想法提供您的建议?

【问题讨论】:

    标签: c# wcf owin


    【解决方案1】:

    WCF 还不支持 OWIN。如果您想自托管 WCF 而不使用 IIS,请查看 http://msdn.microsoft.com/en-us/library/ee939340.aspx

    查看http://owin.org/#projects 了解 OWIN 的支持项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-23
      • 1970-01-01
      • 2013-06-21
      相关资源
      最近更新 更多