mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Started to impliment the Plex checker. This will check plex every x minutes to see if there is any new content and then update the avalibility of the requests
This commit is contained in:
parent
003dd47e3c
commit
3b0b0c521e
19 changed files with 329 additions and 160 deletions
17
PlexRequests.UI/Jobs/TaskFactory.cs
Normal file
17
PlexRequests.UI/Jobs/TaskFactory.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using FluentScheduler;
|
||||
using Nancy.TinyIoc;
|
||||
|
||||
namespace PlexRequests.UI.Jobs
|
||||
{
|
||||
public class TaskFactory : ITaskFactory
|
||||
{
|
||||
public ITask GetTaskInstance<T>() where T : ITask
|
||||
{
|
||||
var container = TinyIoCContainer.Current;
|
||||
object outT;
|
||||
container.TryResolve(typeof(T), out outT);
|
||||
|
||||
return (T)outT;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue