jellyfin/MediaBrowser.Controller/Net/ISessionContext.cs

21 lines
495 B
C#
Raw Normal View History

#pragma warning disable CS1591
2021-04-10 20:57:25 +00:00
using System.Threading.Tasks;
2020-05-13 02:10:35 +00:00
using Jellyfin.Data.Entities;
2018-12-27 23:27:57 +00:00
using MediaBrowser.Controller.Session;
2020-09-02 10:22:14 +00:00
using Microsoft.AspNetCore.Http;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.Net
{
2019-01-07 23:27:46 +00:00
public interface ISessionContext
2018-12-27 23:27:57 +00:00
{
2021-04-10 20:57:25 +00:00
Task<SessionInfo> GetSession(object requestContext);
Task<User?> GetUser(object requestContext);
2018-12-27 23:27:57 +00:00
2021-04-10 20:57:25 +00:00
Task<SessionInfo> GetSession(HttpContext requestContext);
Task<User?> GetUser(HttpContext requestContext);
2018-12-27 23:27:57 +00:00
}
}