Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code­Fixes / ICode­Action­Context

Interface ICodeActionContext

Gets the context in which a code action executes. Exposed by ICodeActionBuilder. If you implement your own code action using the Metalama SDK, you should cast this interface to ISdkCodeActionContext.

Namespace: Metalama.Framework.CodeFixes
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface ICodeActionContext

Properties

Name Description
CancellationToken

Gets the cancellation token.

ServiceProvider

Gets the service provider.