Tapeti/Tapeti/Config/IControllerFilterMiddleware.cs

21 lines
565 B
C#

using System;
using System.Threading.Tasks;
namespace Tapeti.Config
{
/// <inheritdoc />
/// <summary>
/// Denotes middleware that runs before the controller is instantiated.
/// </summary>
public interface IControllerFilterMiddleware : IControllerMiddlewareBase
{
/// <summary>
/// Called before the
/// </summary>
/// <param name="context"></param>
/// <param name="next"></param>
/// <returns></returns>
Task Filter(IControllerMessageContext context, Func<Task> next);
}
}