Class TemplateHookAttribute
- Namespace
- PatternKit.Generators.Template
- Assembly
- PatternKit.Generators.Abstractions.dll
Marks a method as a hook in the template method workflow. Hooks execute at specific lifecycle points (BeforeAll, AfterAll, OnError).
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class TemplateHookAttribute : Attribute
- Inheritance
-
TemplateHookAttribute
- Inherited Members
Constructors
TemplateHookAttribute(HookPoint)
Initializes a new template hook with the specified hook point.
public TemplateHookAttribute(HookPoint hookPoint)
Parameters
hookPointHookPointWhen this hook should be invoked.
Properties
HookPoint
The hook point where this method should be invoked.
public HookPoint HookPoint { get; }
Property Value
StepOrder
Optional step order for future BeforeStep/AfterStep targeting (reserved for v2).
public int? StepOrder { get; set; }
Property Value
- int?