Files
mixtape/zero.Core/Communication/Interceptors/InterceptorResult.cs
T

19 lines
648 B
C#
Raw Normal View History

2021-11-20 13:52:28 +01:00
namespace zero.Communication;
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>
2021-11-22 14:29:22 +01:00
public bool Continue { get; set; } = true;
2021-11-20 13:52:28 +01:00
/// <summary>
/// Set a result. This will prevent further execution of the operation and cancels all subsequent interceptors
/// </summary>
2021-11-26 15:47:11 +01:00
public Result<T> Result { get; set; }
2021-11-20 13:52:28 +01:00
}