mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
25 lines
646 B
C#
25 lines
646 B
C#
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using MediaBrowser.Model.Reflection;
|
|
|
|
namespace Emby.Server.Implementations.Reflection
|
|
{
|
|
public class AssemblyInfo : IAssemblyInfo
|
|
{
|
|
public Stream GetManifestResourceStream(Type type, string resource)
|
|
{
|
|
return type.Assembly.GetManifestResourceStream(resource);
|
|
}
|
|
|
|
public string[] GetManifestResourceNames(Type type)
|
|
{
|
|
return type.Assembly.GetManifestResourceNames();
|
|
}
|
|
|
|
public Assembly[] GetCurrentAssemblies()
|
|
{
|
|
return AppDomain.CurrentDomain.GetAssemblies();
|
|
}
|
|
}
|
|
}
|