Skip to content

Interface IMethodExecutionContext

Namespace: Belay.Core.Execution
Assembly: Belay.Core.dll

Provides method execution context without relying on stack trace inspection. This replaces the security-vulnerable stack frame reflection pattern.

csharp
public interface IMethodExecutionContext

Properties

Instance

Gets the instance the method is being called on (null for static methods).

Method

Gets the method being executed.

MethodName

Gets the method name being executed.

Parameters

Gets the parameters passed to the method.

SetupAttribute

Gets the Setup attribute if present.

TaskAttribute

Gets the Task attribute if present.

TeardownAttribute

Gets the Teardown attribute if present.

ThreadAttribute

Gets the Thread attribute if present.

Released under the Apache License 2.0.