IHasRequestFilter.cs 1016 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MediaBrowser.Model.Services
  7. {
  8. public interface IHasRequestFilter
  9. {
  10. /// <summary>
  11. /// Order in which Request Filters are executed.
  12. /// &lt;0 Executed before global request filters
  13. /// &gt;0 Executed after global request filters
  14. /// </summary>
  15. int Priority { get; }
  16. /// <summary>
  17. /// The request filter is executed before the service.
  18. /// </summary>
  19. /// <param name="req">The http request wrapper</param>
  20. /// <param name="res">The http response wrapper</param>
  21. /// <param name="requestDto">The request DTO</param>
  22. void RequestFilter(IRequest req, IResponse res, object requestDto);
  23. /// <summary>
  24. /// A new shallow copy of this filter is used on every request.
  25. /// </summary>
  26. /// <returns></returns>
  27. IHasRequestFilter Copy();
  28. }
  29. }