diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-01-16 13:17:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-16 13:17:39 -0500 |
| commit | 7aa975325af87fe425fe143aaed1df830133be8b (patch) | |
| tree | de46c0e3bf027c1f8ae03bc6c190f741e31c4e67 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 933ef438894ed233fec46badf58dd4f26492e832 (diff) | |
| parent | d0980f0da57c14966e9e90b00f1880b1b82f4fc8 (diff) | |
Merge pull request #455 from Bond-009/cleanup
Cleanup some small things
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index e97557588..283d6b6d7 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -230,7 +230,6 @@ namespace Emby.Server.Implementations { get { - #if BETA return PackageVersionClass.Beta; #endif @@ -510,7 +509,7 @@ namespace Emby.Server.Implementations protected void RegisterSingleInstance<T>(T obj, bool manageLifetime = true) where T : class { - Container.RegisterSingleton(obj); + Container.RegisterInstance<T>(obj); if (manageLifetime) { @@ -575,7 +574,7 @@ namespace Emby.Server.Implementations } catch (Exception ex) { - Logger.LogError(ex, "Error loading assembly {file}", file); + Logger.LogError(ex, "Error loading assembly {File}", file); return null; } } |
