24 lines
781 B
C#
Raw Normal View History

2025-08-13 11:14:39 +08:00
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类因为它们被自动识别
}
}
}