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.
25 lines
700 B
25 lines
700 B
using System;
|
|
using Microsoft.AspNet.SignalR;
|
|
using Microsoft.AspNet.SignalR.Infrastructure;
|
|
using NzbDrone.Api.SignalR;
|
|
using NzbDrone.Common.Messaging;
|
|
using NzbDrone.Core.Download;
|
|
using NzbDrone.Core.Tv;
|
|
|
|
namespace NzbDrone.Api.Episodes
|
|
{
|
|
public class EpisodeConnection : BasicResourceConnection<Episode>, IHandleAsync<EpisodeGrabbedEvent>
|
|
{
|
|
public override string Resource
|
|
{
|
|
get { return "/Episodes"; }
|
|
}
|
|
|
|
public void HandleAsync(EpisodeGrabbedEvent message)
|
|
{
|
|
var context = ((ConnectionManager)GlobalHost.ConnectionManager).GetConnection(GetType());
|
|
context.Connection.Broadcast(message);
|
|
}
|
|
}
|
|
}
|