jellyfin-server/MediaBrowser.Model/Services/IHasRequestFilter.cs

23 lines
748 B
C#
Raw Normal View History

using Microsoft.AspNetCore.Http;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Model.Services
{
public interface IHasRequestFilter
{
/// <summary>
2019-01-07 23:27:46 +00:00
/// Order in which Request Filters are executed.
2018-12-27 23:27:57 +00:00
/// &lt;0 Executed before global request filters
/// &gt;0 Executed after global request filters
/// </summary>
int Priority { get; }
/// <summary>
/// The request filter is executed before the service.
/// </summary>
/// <param name="req">The http request wrapper</param>
/// <param name="res">The http response wrapper</param>
/// <param name="requestDto">The request DTO</param>
void RequestFilter(IRequest req, HttpResponse res, object requestDto);
2018-12-27 23:27:57 +00:00
}
}