|
|
@ -3,16 +3,15 @@ using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Text;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
|
|
|
|
using Ninject;
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
using NzbDrone.Core.Repository.Quality;
|
|
|
|
using NzbDrone.Core.Providers.Hubs;
|
|
|
|
using SignalR;
|
|
|
|
using SignalR;
|
|
|
|
using SignalR.Hosting.AspNet;
|
|
|
|
|
|
|
|
using SignalR.Hubs;
|
|
|
|
using SignalR.Hubs;
|
|
|
|
using SignalR.Infrastructure;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class SignalRProvider : Hub
|
|
|
|
public class SignalRProvider
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
|
@ -22,7 +21,8 @@ namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
logger.Trace("Sending Status update to client. EpisodeId: {0}, Status: {1}", episodeId, episodeStatus);
|
|
|
|
logger.Trace("Sending Status update to client. EpisodeId: {0}, Status: {1}", episodeId, episodeStatus);
|
|
|
|
|
|
|
|
|
|
|
|
Clients.updatedStatus(new
|
|
|
|
var context = GlobalHost.ConnectionManager.GetHubContext<EpisodeHub>();
|
|
|
|
|
|
|
|
context.Clients.updatedStatus(new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
EpisodeId = episodeId,
|
|
|
|
EpisodeId = episodeId,
|
|
|
|
EpisodeStatus = episodeStatus.ToString(),
|
|
|
|
EpisodeStatus = episodeStatus.ToString(),
|
|
|
|