IFileContextProvider Interface

Definition

Offers services to discover contexts defined in source files.

public interface class IFileContextProvider
public interface class IFileContextProvider
__interface IFileContextProvider
public interface IFileContextProvider
type IFileContextProvider = interface
Public Interface IFileContextProvider

Remarks

An implementing type should export this interface using the ExportFileContextProviderAttribute.

Implementations should register contexts both for source files and outputs that may serve as inputs to other contexts. For example when a project B references project A, someone interested in initializing a language service for B may need to discover the context for A given A's primary output, which serves as an input for B.

Methods

GetContextsForFileAsync(String, CancellationToken)

Finds contexts for a given file.

Applies to