Open sandboxFocus

Interface IExecutionContext

Represents the execution context of Metalama. Exposed by the Current property of MetalamaExecutionContext.

Namespace: Metalama.Framework.Project
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IExecutionContext

Properties

Name Description
Compilation

Gets the current compilation.

ExecutionScenario

Gets information about why the current code is executed and what are the abilities of the current execution context.

FormatProvider

Gets the IFormatProvider, used to format formattable strings. This format provider will properly format elements of the code model and other similar objects.

ServiceProvider

Gets the IServiceProvider.

Methods

Name Description
WithoutDependencyCollection()

Disables the mechanism of dependency collection in the current execution context.