2019-07-27 09:18:49 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
2019-07-29 13:08:25 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// represents an invokable middleware action
|
|
|
|
|
/// </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>
|
|
|
|
|
/// action to execute when the middleware action is invoked
|
|
|
|
|
/// </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);
|
|
|
|
|
}
|
|
|
|
|
}
|