mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 05:31:13 -07:00
Using the IoC container now
This commit is contained in:
parent
bee57b46ff
commit
6fd1e3ba32
27 changed files with 636 additions and 88 deletions
|
@ -2,9 +2,15 @@
|
|||
|
||||
using Microsoft.Owin.Hosting;
|
||||
|
||||
using Mono.Data.Sqlite;
|
||||
|
||||
using Nancy.Hosting.Self;
|
||||
|
||||
using RequestPlex.Core;
|
||||
using RequestPlex.Core.SettingModels;
|
||||
using RequestPlex.Helpers;
|
||||
using RequestPlex.Store;
|
||||
using RequestPlex.Store.Repository.NZBDash.DataAccessLayer.Repository;
|
||||
|
||||
namespace RequestPlex.UI
|
||||
{
|
||||
|
@ -16,7 +22,7 @@ namespace RequestPlex.UI
|
|||
var s = new Setup();
|
||||
s.SetupDb();
|
||||
|
||||
var service = new SettingsService();
|
||||
var service = new SettingsServiceV2<RequestPlexSettings>(new JsonRepository(new DbConfiguration(new SqliteFactory()), new MemoryCacheProvider()));
|
||||
var settings = service.GetSettings();
|
||||
|
||||
if (settings != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue