Skip to content

Class MethodExecutionContext

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

Implementation of method execution context.

csharp
public sealed class MethodExecutionContext : IMethodExecutionContext

Inheritance

objectMethodExecutionContext

Implements

IMethodExecutionContext

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

MethodExecutionContext(MethodInfo?, object?, object?[]?, string?)

Initializes a new instance of the class.

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.

Methods

ForMethodName(string, object?[]?)

Creates a context for a method call without reflection data.

WithTaskAttribute(string, TaskAttribute, object?[]?)

Creates a context with explicit attribute information.

Released under the Apache License 2.0.