Tags
Gets or sets the tags passed to all advice added by the current BuildAspect(IAspectBuilder<T>) method. These tags can be consumed from the Tags property in template code.
Declaration
object? Tags { get; set; }Property Value
| Type | Description |
|---|---|
| object |
Remarks
Advice always receive the last value of the property, when the BuildAspect(IAspectBuilder<T>) exits.
These tags are merged with the ones passed as an argument of the tags parameter of any advise method.
In case of conflict, the values passed to the advise method win.
Tags are useful for passing contextual information from BuildAspect(IAspectBuilder<T>) to template code, such as configuration values or aspect-specific metadata that templates need at code generation time.