Files
mixtape/Finch.Raven/Interceptors/InterceptorResult.cs
T

19 lines
641 B
C#
Raw Normal View History

2026-04-07 14:23:29 +02:00
namespace Finch.Raven;
2022-12-07 14:05:11 +01:00
public class InterceptorResult<T>
{
/// <summary>
/// Autoset. Hash used to match interceptors in order to correctly pass parameters
/// </summary>
internal string InterceptorHash { get; set; }
/// <summary>
/// Prevent further interceptors from running for this operation (only valid for the current interception type, e.g. Update/Created/Purge/...)
/// </summary>
public bool Continue { get; set; } = true;
/// <summary>
/// Set a result. This will prevent further execution of the operation and cancels all subsequent interceptors
/// </summary>
public Result<T> Result { get; set; }
}