mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Timers are now initialized on startup.
This commit is contained in:
parent
38712c7e5f
commit
6caae19430
4 changed files with 96 additions and 0 deletions
|
@ -109,9 +109,12 @@ namespace NzbDrone.Core
|
|||
SetupDefaultQualityProfiles(_kernel.Get<IRepository>()); //Setup the default QualityProfiles on start-up
|
||||
|
||||
BindIndexers();
|
||||
BindTimers();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static void BindIndexers()
|
||||
{
|
||||
_kernel.Bind<IndexerProviderBase>().To<NzbsOrgProvider>().InSingletonScope();
|
||||
|
@ -122,6 +125,12 @@ namespace NzbDrone.Core
|
|||
_kernel.Get<IndexerProvider>().InitializeIndexers(indexers.ToList());
|
||||
}
|
||||
|
||||
private static void BindTimers()
|
||||
{
|
||||
_kernel.Bind<ITimer>().To<RssSyncTimer>().InTransientScope();
|
||||
_kernel.Get<TimerProvider>().Initialize();
|
||||
}
|
||||
|
||||
private static void ForceMigration(IRepository repository)
|
||||
{
|
||||
repository.GetPaged<Series>(0, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue