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.
23 lines
619 B
23 lines
619 B
using Microsoft.AspNet.SignalR;
|
|
using Microsoft.AspNet.SignalR.Infrastructure;
|
|
using NzbDrone.Core.Messaging;
|
|
|
|
namespace NzbDrone.SignalR
|
|
{
|
|
public sealed class NzbDronePersistentConnection : PersistentConnection, IExecute<BroadcastSignalRMessage>
|
|
{
|
|
private IPersistentConnectionContext Context
|
|
{
|
|
get
|
|
{
|
|
return ((ConnectionManager)GlobalHost.ConnectionManager).GetConnection(GetType());
|
|
}
|
|
}
|
|
|
|
|
|
public void Execute(BroadcastSignalRMessage message)
|
|
{
|
|
Context.Connection.Broadcast(message.Body);
|
|
}
|
|
}
|
|
} |