Class ActionContext
- Namespace
- Dassie.Extensions
- Assembly
- dc.dll
The context in which an action is executed.
public record ActionContext : IEquatable<ActionContext>
- Inheritance
-
ActionContext
- Implements
- Inherited Members
- Extension Methods
Constructors
ActionContext(List<XmlNode>, List<XmlAttribute>, string, ActionModes, string, DassieConfig)
The context in which an action is executed.
public ActionContext(List<XmlNode> XmlElements, List<XmlAttribute> XmlAttributes, string Text, ActionModes Mode, string BuildEventName, DassieConfig Configuration)
Parameters
XmlElementsList<XmlNode>The XML elements passed to the action.
XmlAttributesList<XmlAttribute>The XML attributes passed to the action.
TextstringThe string argument passed to the action.
ModeActionModesThe mode the action is being invoked in.
BuildEventNamestringThe name of the build event executing the action, if the action is executed as part of a build event.
ConfigurationDassieConfigThe configuration the build action is being invoked with.
Properties
BuildEventName
The name of the build event executing the action, if the action is executed as part of a build event.
public string BuildEventName { get; init; }
Property Value
Configuration
The configuration the build action is being invoked with.
public DassieConfig Configuration { get; init; }
Property Value
Mode
The mode the action is being invoked in.
public ActionModes Mode { get; init; }
Property Value
Text
The string argument passed to the action.
public string Text { get; init; }
Property Value
XmlAttributes
The XML attributes passed to the action.
public List<XmlAttribute> XmlAttributes { get; init; }
Property Value
XmlElements
The XML elements passed to the action.
public List<XmlNode> XmlElements { get; init; }