mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-20 15:54:38 +00:00
Simplify file serving code
This commit is contained in:
parent
e3a3aebbf6
commit
253e72f667
6 changed files with 74 additions and 156 deletions
|
|
@ -1,16 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using MediaBrowser.Model.Services;
|
||||
|
||||
namespace MediaBrowser.Controller
|
||||
{
|
||||
public interface IResourceFileManager
|
||||
{
|
||||
Task<object> GetStaticFileResult(IRequest request, string basePath, string virtualPath, string contentType, TimeSpan? cacheDuration);
|
||||
|
||||
Stream GetResourceFileStream(string basePath, string virtualPath);
|
||||
|
||||
string ReadAllText(string basePath, string virtualPath);
|
||||
string GetResourcePath(string basePath, string virtualPath);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue