2020-08-22 12:56:24 -07:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2020-05-12 19:10:35 -07:00
|
|
|
using Jellyfin.Data.Entities;
|
2018-12-27 16:27:57 -07:00
|
|
|
using MediaBrowser.Controller.Session;
|
2020-09-02 03:22:14 -07:00
|
|
|
using Microsoft.AspNetCore.Http;
|
2018-12-27 16:27:57 -07:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
{
|
2019-01-07 16:27:46 -07:00
|
|
|
public interface ISessionContext
|
2018-12-27 16:27:57 -07:00
|
|
|
{
|
|
|
|
SessionInfo GetSession(object requestContext);
|
2020-08-22 12:56:24 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
User GetUser(object requestContext);
|
|
|
|
|
2020-09-02 03:22:14 -07:00
|
|
|
SessionInfo GetSession(HttpContext requestContext);
|
2020-08-22 12:56:24 -07:00
|
|
|
|
2020-09-02 03:22:14 -07:00
|
|
|
User GetUser(HttpContext requestContext);
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
}
|