You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Host/Owin/MiddleWare/SignalRMiddleWare.cs

25 lines
713 B

using System;
using Microsoft.AspNet.SignalR;
using NzbDrone.Common.Composition;
11 years ago
using NzbDrone.SignalR;
using Owin;
namespace NzbDrone.Host.Owin.MiddleWare
{
public class SignalRMiddleWare : IOwinMiddleWare
{
public int Order { get { return 0; } }
11 years ago
public SignalRMiddleWare(IContainer container)
{
SignalrDependencyResolver.Register(container);
GlobalHost.Configuration.DisconnectTimeout = TimeSpan.FromSeconds(300000);
}
public void Attach(IAppBuilder appBuilder)
{
11 years ago
appBuilder.MapConnection("signalr", typeof(NzbDronePersistentConnection), new ConnectionConfiguration { EnableCrossDomain = true });
}
}
}