using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Controller.Net
{
    /// 
    /// IAuthorization context.
    /// 
    public interface IAuthorizationContext
    {
        /// 
        /// Gets the authorization information.
        /// 
        /// The request context.
        /// A task containing the authorization info.
        Task GetAuthorizationInfo(HttpContext requestContext);
        /// 
        /// Gets the authorization information.
        /// 
        /// The request context.
        /// A  containing the authorization info.
        Task GetAuthorizationInfo(HttpRequest requestContext);
    }
}