24 lines
781 B
C#
24 lines
781 B
C#
|
using Microsoft.AspNet.SignalR;
|
|||
|
using Owin;
|
|||
|
using Microsoft.Owin;
|
|||
|
//using Microsoft.Owin.Cors;
|
|||
|
//using Microsoft.Owin.Hosting;
|
|||
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
/// <summary>
|
|||
|
/// 消息推送
|
|||
|
/// </summary>
|
|||
|
[assembly: OwinStartup(typeof(Learun.Application.Web.MsgSendStart.Startup))]
|
|||
|
namespace Learun.Application.Web.MsgSendStart
|
|||
|
{
|
|||
|
public class Startup
|
|||
|
{
|
|||
|
public void Configuration(IAppBuilder app)
|
|||
|
{
|
|||
|
// Any connection or hub wire up and configuration should go here
|
|||
|
app.MapSignalR();//默认映射路径"/SignalR"
|
|||
|
//或
|
|||
|
//app.MapSignalR("/test", new HubConfiguration());//自己设定访问路径,同时设置Hub配置项,无需指定启动的Hub类,因为它们被自动识别
|
|||
|
}
|
|||
|
}
|
|||
|
}
|