How to add OWIN Startup in WCF service

爱⌒轻易说出口 提交于 2019-12-11 07:48:12

问题


Hi i've added a owin startup class in my WCF service this

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
        }
    }
}

but it seems that the Configuration method is not firing i've tried this in a normal web application its working. but in WCF its not did i miss something? that's why its not firing my my WCF application kindly give your advice regarding this any ideas?


回答1:


WCF doesn't support OWIN yet. Take a look at http://msdn.microsoft.com/en-us/library/ee939340.aspx if you want to self host WCF and not use IIS.

Check out http://owin.org/#projects for the support projects of OWIN.



来源:https://stackoverflow.com/questions/26457261/how-to-add-owin-startup-in-wcf-service

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