MetalamaAPI documentationAspect APIMetalama.​Framework.​ProjectIExecution­Context
Open sandboxFocus

IExecutionContext Interface

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 System.IFormatProvider, used to format formattable strings. This format provider will properly format elements of the code model and other similar objects.

ServiceProvider

Gets the System.IServiceProvider.

Methods

Name Description
WithoutDependencyCollection()

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