Class Injection
Describes one injection method that should be copied into a generated wrapper.
public sealed record Injection : IEquatable<Injection>
- Inheritance
-
Injection
- Implements
- Inherited Members
Constructors
Injection(MethodBase, InjectAt, string, int)
Describes one injection method that should be copied into a generated wrapper.
public Injection(MethodBase InjectionMethod, InjectAt At, string Owner, int Priority)
Parameters
InjectionMethodMethodBaseThe injection method whose body supplies the injected IL.
AtInjectAtThe position or call site where the injection method body is inserted.
OwnerstringThe stable owner id used for patch grouping and unpatching.
PriorityintThe ordering priority for this injection relative to other owners.
Properties
AfterOwners
The patch owners that should run before this injection.
public IReadOnlyList<string> AfterOwners { get; set; }
Property Value
At
The position or call site where the injection method body is inserted.
public InjectAt At { get; init; }
Property Value
BeforeOwners
The patch owners that should run after this injection.
public IReadOnlyList<string> BeforeOwners { get; set; }
Property Value
Body
Which body this injection attaches to when the target is an async or iterator method. Defaults to Declared.
public PatchBody Body { get; set; }
Property Value
Debug
Gets whether applying this injection writes the composed wrapper IL to the desktop debug log.
public bool Debug { get; set; }
Property Value
InjectionMethod
The injection method whose body supplies the injected IL.
public MethodBase InjectionMethod { get; init; }
Property Value
Owner
The stable owner id used for patch grouping and unpatching.
public string Owner { get; init; }
Property Value
Priority
The ordering priority for this injection relative to other owners.
public int Priority { get; init; }