mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 01:06:30 +00:00
Removed IRssSyncProvider & IBacklogProvider
This commit is contained in:
parent
0d95302aee
commit
29690d9b6f
4 changed files with 24 additions and 23 deletions
|
@ -79,7 +79,7 @@ namespace NzbDrone.Core
|
||||||
_kernel.Bind<NotificationProvider>().ToSelf().InSingletonScope();
|
_kernel.Bind<NotificationProvider>().ToSelf().InSingletonScope();
|
||||||
_kernel.Bind<ILogProvider>().To<LogProvider>().InSingletonScope();
|
_kernel.Bind<ILogProvider>().To<LogProvider>().InSingletonScope();
|
||||||
_kernel.Bind<IMediaFileProvider>().To<MediaFileProvider>().InSingletonScope();
|
_kernel.Bind<IMediaFileProvider>().To<MediaFileProvider>().InSingletonScope();
|
||||||
_kernel.Bind<TimerProvider>().To<TimerProvider>().InSingletonScope();
|
_kernel.Bind<TimerProvider>().ToSelf().InSingletonScope();
|
||||||
_kernel.Bind<IRepository>().ToMethod(c => new SimpleRepository(dbProvider, SimpleRepositoryOptions.RunMigrations)).InSingletonScope();
|
_kernel.Bind<IRepository>().ToMethod(c => new SimpleRepository(dbProvider, SimpleRepositoryOptions.RunMigrations)).InSingletonScope();
|
||||||
|
|
||||||
_kernel.Bind<IRepository>().ToConstant(logRepository).WhenInjectedInto<SubsonicTarget>().InSingletonScope();
|
_kernel.Bind<IRepository>().ToConstant(logRepository).WhenInjectedInto<SubsonicTarget>().InSingletonScope();
|
||||||
|
|
21
NzbDrone.Core/Providers/BacklogProvider.cs
Normal file
21
NzbDrone.Core/Providers/BacklogProvider.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Providers
|
||||||
|
{
|
||||||
|
public class BacklogProvider
|
||||||
|
{
|
||||||
|
//Will provide Backlog Search functionality
|
||||||
|
|
||||||
|
public virtual bool StartSearch()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
public virtual bool StartSearch(int seriesId)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,15 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.Providers
|
|
||||||
{
|
|
||||||
public interface IBacklogProvider
|
|
||||||
{
|
|
||||||
//Will provide Backlog Search functionality
|
|
||||||
|
|
||||||
bool StartSearch();
|
|
||||||
bool StartSearch(int seriesId);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -5,14 +5,9 @@ using System.Text;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Providers
|
namespace NzbDrone.Core.Providers
|
||||||
{
|
{
|
||||||
public interface IRssSyncProvider
|
public class RssSyncProvider
|
||||||
{
|
{
|
||||||
void Begin();
|
public virtual void Begin()
|
||||||
}
|
|
||||||
|
|
||||||
public class RssSyncProvider : IRssSyncProvider
|
|
||||||
{
|
|
||||||
public void Begin()
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue