Skip to content
Concord

Class Injection

Namespace
Concord.Emit
Assembly
Concord.Emit.dll

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

InjectionMethod MethodBase

The injection method whose body supplies the injected IL.

At InjectAt

The position or call site where the injection method body is inserted.

Owner string

The stable owner id used for patch grouping and unpatching.

Priority int

The 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

IReadOnlyList<string>

At

The position or call site where the injection method body is inserted.

public InjectAt At { get; init; }

Property Value

InjectAt

BeforeOwners

The patch owners that should run after this injection.

public IReadOnlyList<string> BeforeOwners { get; set; }

Property Value

IReadOnlyList<string>

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

PatchBody

Debug

Gets whether applying this injection writes the composed wrapper IL to the desktop debug log.

public bool Debug { get; set; }

Property Value

bool

InjectionMethod

The injection method whose body supplies the injected IL.

public MethodBase InjectionMethod { get; init; }

Property Value

MethodBase

Owner

The stable owner id used for patch grouping and unpatching.

public string Owner { get; init; }

Property Value

string

Priority

The ordering priority for this injection relative to other owners.

public int Priority { get; init; }

Property Value

int