2020-08-22 19:56:24 +00:00
|
|
|
#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);
|
2020-08-22 19:56:24 +00:00
|
|
|
|
2021-06-18 22:47:44 +00:00
|
|
|
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);
|
2020-08-22 19:56:24 +00:00
|
|
|
|
2021-06-18 22:47:44 +00:00
|
|
|
Task<User?> GetUser(HttpContext requestContext);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|