event aggregator is singleton to prevent it from being disposed.

This commit is contained in:
kay.one 2013-03-30 15:43:19 -07:00
commit af3282630f
6 changed files with 26 additions and 6 deletions

View file

@ -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);
}
}
}