You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
613 B
23 lines
613 B
using System.IO;
|
|
using System.Reflection;
|
|
using MediaBrowser.Common.Net.Handlers;
|
|
|
|
namespace MediaBrowser.HtmlBrowser.Handlers
|
|
{
|
|
class EmbeddedResourceHandler : BaseEmbeddedResourceHandler
|
|
{
|
|
public EmbeddedResourceHandler(string resourcePath)
|
|
: base(resourcePath)
|
|
{
|
|
|
|
}
|
|
|
|
protected override Stream GetEmbeddedResourceStream()
|
|
{
|
|
string path = ResourcePath.Replace("/", ".");
|
|
|
|
return Assembly.GetExecutingAssembly().GetManifestResourceStream("MediaBrowser.HtmlBrowser.Html." + path);
|
|
}
|
|
}
|
|
}
|