2019-11-25 13:05:12 -05:00
|
|
|
|
using System.Threading.Tasks;
|
2019-07-27 09:18:49 -04:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
2019-07-29 13:08:25 -04:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// represents an invokable middleware action
|
2019-07-29 13:08:25 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
2019-07-27 09:18:49 -04:00
|
|
|
|
public interface IMiddlewareAction<T>
|
|
|
|
|
{
|
2019-07-29 13:08:25 -04:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// action to execute when the middleware action is invoked
|
2019-07-29 13:08:25 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="original"></param>
|
|
|
|
|
/// <returns>modified original action type instance</returns>
|
2019-07-27 09:18:49 -04:00
|
|
|
|
Task<T> Invoke(T original);
|
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|