mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 03:38:26 -07:00
Fixed signalR for Missing/Wanted
This commit is contained in:
parent
5dcc6a74eb
commit
293e6cac6d
5 changed files with 16 additions and 41 deletions
|
@ -14,14 +14,23 @@ namespace NzbDrone.Api.Episodes
|
|||
where TResource : EpisodeResource, new()
|
||||
where TModel : Episode
|
||||
{
|
||||
protected EpisodeModuleWithSignalR(ICommandExecutor commandExecutor)
|
||||
private readonly IEpisodeService _episodeService;
|
||||
|
||||
protected EpisodeModuleWithSignalR(IEpisodeService episodeService, ICommandExecutor commandExecutor)
|
||||
: base(commandExecutor)
|
||||
{
|
||||
_episodeService = episodeService;
|
||||
}
|
||||
|
||||
protected EpisodeModuleWithSignalR(ICommandExecutor commandExecutor, string resource)
|
||||
protected EpisodeModuleWithSignalR(IEpisodeService episodeService, ICommandExecutor commandExecutor, string resource)
|
||||
: base(commandExecutor, resource)
|
||||
{
|
||||
_episodeService = episodeService;
|
||||
}
|
||||
|
||||
protected EpisodeResource GetEpisode(int id)
|
||||
{
|
||||
return _episodeService.GetEpisode(id).InjectTo<EpisodeResource>();
|
||||
}
|
||||
|
||||
public void Handle(EpisodeGrabbedEvent message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue