1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 16:51:58 +00:00

Removed IPostProcessingProvider

This commit is contained in:
Mark McDowall 2011-04-08 08:24:16 -07:00
parent 030c6fb7b7
commit 0ee4f8cc9b
5 changed files with 6 additions and 18 deletions

View file

@ -71,6 +71,7 @@ public static void BindKernel()
_kernel.Bind<RootDirProvider>().To<RootDirProvider>();
_kernel.Bind<IExtenalNotificationProvider>().To<ExternalNotificationProvider>();
_kernel.Bind<XbmcProvider>().To<XbmcProvider>();
_kernel.Bind<PostProcessingProvider>().To<PostProcessingProvider>();
_kernel.Bind<IConfigProvider>().To<ConfigProvider>().InSingletonScope();
_kernel.Bind<ISyncProvider>().To<SyncProvider>().InSingletonScope();
_kernel.Bind<IIndexerProvider>().To<IndexerProvider>().InSingletonScope();

View file

@ -187,7 +187,6 @@
<Compile Include="Providers\IHistoryProvider.cs" />
<Compile Include="Providers\IIndexerProvider.cs" />
<Compile Include="Providers\IndexerProvider.cs" />
<Compile Include="Providers\IPostProcessingProvider.cs" />
<Compile Include="Providers\IRenameProvider.cs" />
<Compile Include="Providers\IRssSyncProvider.cs" />
<Compile Include="Providers\PostProcessingProvider.cs" />

View file

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Core.Providers
{
public interface IPostProcessingProvider
{
void ProcessEpisode(string dir, string nzbName);
}
}

View file

@ -9,7 +9,7 @@
namespace NzbDrone.Core.Providers
{
public class PostProcessingProvider : IPostProcessingProvider
public class PostProcessingProvider
{
private readonly ISeriesProvider _seriesProvider;
private readonly IMediaFileProvider _mediaFileProvider;
@ -23,9 +23,9 @@ public PostProcessingProvider(ISeriesProvider seriesProvider,
_renameProvider = renameProvider;
}
#region IPostProcessingProvider Members
#region PostProcessingProvider Members
public void ProcessEpisode(string dir, string nzbName)
public virtual void ProcessEpisode(string dir, string nzbName)
{
var parsedSeries = Parser.ParseSeriesName(nzbName);
var series = _seriesProvider.FindSeries(parsedSeries);

View file

@ -13,12 +13,12 @@ namespace NzbDrone.Web.Controllers
{
public class ApiController : Controller
{
private readonly IPostProcessingProvider _postProcessingProvider;
private readonly PostProcessingProvider _postProcessingProvider;
private readonly IConfigProvider _configProvider;
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
public ApiController(IPostProcessingProvider postProcessingProvider, IConfigProvider configProvider)
public ApiController(PostProcessingProvider postProcessingProvider, IConfigProvider configProvider)
{
_postProcessingProvider = postProcessingProvider;
_configProvider = configProvider;