2016-10-26 08:01:42 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
2016-11-03 23:34:16 +01:00
|
|
|
|
using System.Reflection;
|
2017-08-16 08:43:41 +02:00
|
|
|
|
using MediaBrowser.Model.Reflection;
|
2016-10-26 08:01:42 +02:00
|
|
|
|
|
2017-08-16 08:43:41 +02:00
|
|
|
|
namespace Emby.Server.Implementations.Reflection
|
2016-10-26 08:01:42 +02:00
|
|
|
|
{
|
|
|
|
|
public class AssemblyInfo : IAssemblyInfo
|
|
|
|
|
{
|
|
|
|
|
public Stream GetManifestResourceStream(Type type, string resource)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceStream(resource);
|
|
|
|
|
}
|
2016-11-04 09:31:05 +01:00
|
|
|
|
|
|
|
|
|
public string[] GetManifestResourceNames(Type type)
|
|
|
|
|
{
|
|
|
|
|
return type.Assembly.GetManifestResourceNames();
|
|
|
|
|
}
|
2016-11-19 17:51:49 +01:00
|
|
|
|
|
|
|
|
|
public Assembly[] GetCurrentAssemblies()
|
|
|
|
|
{
|
|
|
|
|
return AppDomain.CurrentDomain.GetAssemblies();
|
|
|
|
|
}
|
2016-10-26 08:01:42 +02:00
|
|
|
|
}
|
|
|
|
|
}
|