added marr.datamapper source code for easy debugging.

This commit is contained in:
kay.one 2013-03-30 14:56:34 -07:00
commit 3cdff3bb71
96 changed files with 9198 additions and 363 deletions

View file

@ -26,7 +26,7 @@ namespace NzbDrone.Core.Tv
void DeleteSeries(int seriesId, bool deleteFiles);
}
public class SeriesService : ISeriesService
public class SeriesService : ISeriesService, IHandleAsync<SeriesAddedEvent>
{
private readonly ISeriesRepository _seriesRepository;
private readonly IConfigService _configService;
@ -178,5 +178,10 @@ namespace NzbDrone.Core.Tv
_seriesRepository.Delete(seriesId);
_eventAggregator.Publish(new SeriesDeletedEvent(series, deleteFiles));
}
public void HandleAsync(SeriesAddedEvent message)
{
UpdateSeriesInfo(message.Series.Id);
}
}
}