Files
2026-05-05 11:34:32 +02:00

19 lines
643 B
C#

namespace Mixtape.Raven;
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; }
}