2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-07-28 21:53:19 +00:00
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.Services
|
|
|
|
{
|
|
|
|
public interface IHasRequestFilter
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-04-05 16:10:56 +00:00
|
|
|
/// Gets the order in which Request Filters are executed.
|
2020-06-03 09:26:40 +00:00
|
|
|
/// <0 Executed before global request filters.
|
2020-04-05 16:10:56 +00:00
|
|
|
/// >0 Executed after global request filters.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
int Priority { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The request filter is executed before the service.
|
|
|
|
/// </summary>
|
2020-04-05 16:10:56 +00:00
|
|
|
/// <param name="req">The http request wrapper.</param>
|
|
|
|
/// <param name="res">The http response wrapper.</param>
|
|
|
|
/// <param name="requestDto">The request DTO.</param>
|
2019-07-28 21:53:19 +00:00
|
|
|
void RequestFilter(IRequest req, HttpResponse res, object requestDto);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|