mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Update clients when new episode is imported (ready).
This commit is contained in:
parent
8519c3c745
commit
c739b3e132
7 changed files with 16 additions and 6 deletions
|
@ -13,18 +13,18 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
public class SignalRProvider : Hub
|
||||
{
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
public virtual void UpdateEpisodeStatus(int episodeId, EpisodeStatusType episodeStatus)
|
||||
{
|
||||
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);
|
||||
|
||||
GetClients().updatedStatus(episodeId, episodeStatus.ToString());
|
||||
}
|
||||
|
||||
private static dynamic GetClients()
|
||||
{
|
||||
IConnectionManager connectionManager = AspNetHost.DependencyResolver.Resolve<IConnectionManager>();
|
||||
var connectionManager = AspNetHost.DependencyResolver.Resolve<IConnectionManager>();
|
||||
return connectionManager.GetClients<SignalRProvider>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue