using System.Collections.Generic; using zero.Core.Entities; namespace zero.Core.Collections { public class InterceptorResult { /// /// Autoset. Hash used to match interceptors in order to correctly pass parameters /// internal string InterceptorHash { get; set; } /// /// Prevent further interceptors from running for this operation (only valid for the current interception type, e.g. Update/Created/Purge/...) /// public bool Prevent { get; set; } /// /// Set a result. This will prevent further execution of the operation and cancels all subsequent interceptors /// public EntityResult Result { get; set; } /// /// Additional parameters which can be passed to the interceptor after the operation was completed /// public Dictionary Parameters { get; set; } = new(); } }