mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Fixed exception and all areas will now use the base url #72
This commit is contained in:
parent
866b6d6d6d
commit
6dea8b7440
7 changed files with 32 additions and 16 deletions
|
@ -35,9 +35,13 @@ namespace PlexRequests.UI.Helpers
|
|||
Singleton = new ServiceLocator();
|
||||
}
|
||||
private static ServiceLocator Singleton { get; }
|
||||
private TinyIoCContainer Container => TinyIoCContainer.Current;
|
||||
private TinyIoCContainer Container { get; set; }
|
||||
public static ServiceLocator Instance => Singleton;
|
||||
|
||||
public void SetContainer(TinyIoCContainer con)
|
||||
{
|
||||
Container = con;
|
||||
}
|
||||
public T Resolve<T>() where T : class
|
||||
{
|
||||
if (Container != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue