4cd57f4a90
Migrate all SignalR 1.x Persistent Connections to SignalR 2.x Hubs. Abstracts ScheduledTaskStatus with core interface and adds a Mock for optional status reporting. Noticeboards rewritten (with new theme) to be more resilient and accurate.
21 lines
460 B
C#
21 lines
460 B
C#
using Microsoft.AspNet.SignalR;
|
|
using Microsoft.Owin;
|
|
using Owin;
|
|
|
|
[assembly: OwinStartup(typeof(Disco.Web.OwinStartupConfig))]
|
|
|
|
namespace Disco.Web
|
|
{
|
|
public class OwinStartupConfig
|
|
{
|
|
public void Configuration(IAppBuilder app)
|
|
{
|
|
var hubConfig = new HubConfiguration()
|
|
{
|
|
EnableJavaScriptProxies = false
|
|
};
|
|
|
|
app.MapSignalR("/API/Signalling", hubConfig);
|
|
}
|
|
}
|
|
} |