diff options
| author | LogicalPhallacy <44458166+LogicalPhallacy@users.noreply.github.com> | 2019-03-16 00:25:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-16 00:25:16 -0700 |
| commit | 2d0844b5dbf08869896c5479c10675c4fe7fa988 (patch) | |
| tree | dea28b14d2b1733edf1a90a46f4163f6123616fe /Emby.Server.Implementations/Data/TypeMapper.cs | |
| parent | 221389089cc9ca4b69907d6bf3e9d38bf94393ea (diff) | |
| parent | 59031ee3b8b2ac8298c41f9171b658e3f15e17bc (diff) | |
Merge pull request #1 from jellyfin/master
merging myself to latest
Diffstat (limited to 'Emby.Server.Implementations/Data/TypeMapper.cs')
| -rw-r--r-- | Emby.Server.Implementations/Data/TypeMapper.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Data/TypeMapper.cs b/Emby.Server.Implementations/Data/TypeMapper.cs index 37c952e88..0e67affbf 100644 --- a/Emby.Server.Implementations/Data/TypeMapper.cs +++ b/Emby.Server.Implementations/Data/TypeMapper.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Concurrent; using System.Linq; -using MediaBrowser.Model.Reflection; namespace Emby.Server.Implementations.Data { @@ -10,16 +9,13 @@ namespace Emby.Server.Implementations.Data /// </summary> public class TypeMapper { - private readonly IAssemblyInfo _assemblyInfo; - /// <summary> /// This holds all the types in the running assemblies so that we can de-serialize properly when we don't have strong types /// </summary> private readonly ConcurrentDictionary<string, Type> _typeMap = new ConcurrentDictionary<string, Type>(); - public TypeMapper(IAssemblyInfo assemblyInfo) + public TypeMapper() { - _assemblyInfo = assemblyInfo; } /// <summary> @@ -45,8 +41,7 @@ namespace Emby.Server.Implementations.Data /// <returns>Type.</returns> private Type LookupType(string typeName) { - return _assemblyInfo - .GetCurrentAssemblies() + return AppDomain.CurrentDomain.GetAssemblies() .Select(a => a.GetType(typeName)) .FirstOrDefault(t => t != null); } |
