diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-01-06 20:35:36 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-01-06 20:35:36 +0100 |
| commit | 07a8e49c4b1e4a2dddbaa49ab6f1ff4f271fbf20 (patch) | |
| tree | 86cc8c77ebf98985cfa8f4727f0f900d24219042 /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | b27315bc08d4d224cf090efc24385c7102741089 (diff) | |
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 9b9c6146f..8d161d375 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -238,7 +238,6 @@ namespace Emby.Server.Implementations { get { - #if BETA return PackageVersionClass.Beta; #endif @@ -552,7 +551,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) { @@ -617,7 +616,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; } } |
