jellyfin-server/MediaBrowser.Controller/Net/IAuthorizationContext.cs

26 lines
881 B
C#
Raw Normal View History

2021-05-21 03:56:59 +00:00
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.Net
{
/// <summary>
/// IAuthorization context.
/// </summary>
2018-12-27 23:27:57 +00:00
public interface IAuthorizationContext
{
/// <summary>
/// Gets the authorization information.
/// </summary>
/// <param name="requestContext">The request context.</param>
2021-05-21 03:56:59 +00:00
/// <returns>A task containing the authorization info.</returns>
Task<AuthorizationInfo> GetAuthorizationInfo(HttpContext requestContext);
/// <summary>
/// Gets the authorization information.
/// </summary>
/// <param name="requestContext">The request context.</param>
2021-05-21 03:56:59 +00:00
/// <returns>A <see cref="Task"/> containing the authorization info.</returns>
Task<AuthorizationInfo> GetAuthorizationInfo(HttpRequest requestContext);
2018-12-27 23:27:57 +00:00
}
}