24 lines
781 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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类因为它们被自动识别
}
}
}