SignalR不OWIN [英] SignalR without OWIN

查看:452
本文介绍了SignalR不OWIN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我参加了ASP MVC项目。

I'm participating in the ASP MVC project.

我要在项目中使用SignalR,但我不希望使用OWIN库。

I want to use SignalR in the project but I don't want to use OWIN lib.

据我了解,SignalR注册使用这块code的应用程序:

As I understand, SignalR is registered in the application using this piece of code:

public class Startup
{
    public void Configuration(IAppBuilder app)
    {
        app.MapSignalR();
    }
}

我怎么能修改此去除依赖关系OWIN?

How can I modify this to remove the dependency to OWIN?

我想用类似的方法来 RouteConfig.RegisterRoutes(RouteTable.Routes);

推荐答案

如果您不希望owin lib中,你可以使用SignalR 1.x的。

If you don't want the owin lib you can use SignalR 1.x.

protected void Application_Start()
{
    RouteTable.Routes.MapHubs();
}

这篇关于SignalR不OWIN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆