From e99bc61d53f393dc475e265e3b5bc8c19b186594 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 23 Jul 2017 02:11:54 -0400 Subject: [PATCH] fix merge conflicts --- .../BaseApplicationHost.cs | 18 +++++++++++------- SharedVersion.cs | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Emby.Common.Implementations/BaseApplicationHost.cs b/Emby.Common.Implementations/BaseApplicationHost.cs index 2f3b0ba4b..e7710162c 100644 --- a/Emby.Common.Implementations/BaseApplicationHost.cs +++ b/Emby.Common.Implementations/BaseApplicationHost.cs @@ -169,14 +169,15 @@ namespace Emby.Common.Implementations { _deviceId = new DeviceId(ApplicationPaths, LogManager.GetLogger("SystemId"), FileSystemManager); } - + return _deviceId.Value; } } public PackageVersionClass SystemUpdateLevel { - get { + get + { #if BETA return PackageVersionClass.Beta; @@ -216,7 +217,7 @@ namespace Emby.Common.Implementations // hack alert, until common can target .net core BaseExtensions.CryptographyProvider = CryptographyProvider; - + XmlSerializer = new MyXmlSerializer(fileSystem, logManager.GetLogger("XmlSerializer")); FailedAssemblies = new List(); @@ -556,7 +557,7 @@ namespace Emby.Common.Implementations /// The assembly. /// IEnumerable{Type}. /// assembly - protected IEnumerable GetTypes(Assembly assembly) + protected List GetTypes(Assembly assembly) { if (assembly == null) { @@ -568,7 +569,7 @@ namespace Emby.Common.Implementations // This null checking really shouldn't be needed but adding it due to some // unhandled exceptions in mono 5.0 that are a little hard to hunt down var types = assembly.GetTypes() ?? new Type[] { }; - return types.Where(t => t != null); + return types.Where(t => t != null).ToList(); } catch (ReflectionTypeLoadException ex) { @@ -576,13 +577,16 @@ namespace Emby.Common.Implementations { foreach (var loaderException in ex.LoaderExceptions) { - Logger.Error("LoaderException: " + loaderException.Message); + if (loaderException != null) + { + Logger.Error("LoaderException: " + loaderException.Message); + } } } // If it fails we can still get a list of the Types it was able to resolve var types = ex.Types ?? new Type[] { }; - return types.Where(t => t != null); + return types.Where(t => t != null).ToList(); } catch (Exception ex) { diff --git a/SharedVersion.cs b/SharedVersion.cs index c1fcd083e..65368da5e 100644 --- a/SharedVersion.cs +++ b/SharedVersion.cs @@ -1,3 +1,3 @@ using System.Reflection; -[assembly: AssemblyVersion("3.2.25.0")] +[assembly: AssemblyVersion("3.2.25.12")]