mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
event aggregator is singleton to prevent it from being disposed.
This commit is contained in:
parent
f2886d89de
commit
af3282630f
6 changed files with 26 additions and 6 deletions
|
@ -40,7 +40,8 @@ namespace NzbDrone.Core.Tv
|
|||
public class EpisodeService : IEpisodeService,
|
||||
IHandle<EpisodeGrabbedEvent>,
|
||||
IHandle<EpisodeFileDeletedEvent>,
|
||||
IHandleAsync<SeriesDeletedEvent>
|
||||
IHandleAsync<SeriesDeletedEvent>,
|
||||
IHandleAsync<SeriesAddedEvent>
|
||||
{
|
||||
|
||||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
@ -399,5 +400,10 @@ namespace NzbDrone.Core.Tv
|
|||
UpdateEpisode(episode);
|
||||
}
|
||||
}
|
||||
|
||||
public void HandleAsync(SeriesAddedEvent message)
|
||||
{
|
||||
RefreshEpisodeInfo(message.Series);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue