Partager via


IClientContext Interface

Definition

Container for client context at the time of a command invocation.

public interface IClientContext
type IClientContext = interface
Public Interface IClientContext
Derived

Properties

Extensibility

Gets the extensibility instance that can be used by extension methods extending the client context.

Item[String]

Gets the value of client context category.

ServiceBrokerClient

Gets the service broker instance that can be used by extension methods extending the client context.

Extension Methods

GetActiveTextViewAsync(IClientContext, CancellationToken)

Gets the active text view on the IDE at the time context was created.

GetSelectedPathAsync(IClientContext, CancellationToken)

Gets the selected item path on the local machine from the current workspace tree.

GetActiveProjectAsync(IClientContext, Func<IAsyncQueryable<IProjectSnapshot>,IAsyncQueryable<IProjectSnapshot>>, CancellationToken)

Gets the active project snapshot with Path and Files information and additional properties added in withModifier callback. This snapshot can be used to update the project starting with AsUpdatable extension method.

GetActiveProjectAsync(IClientContext, CancellationToken)

Gets the active project snapshot with Path information by default. This snapshot can be used to update the project starting with AsUpdatable extension method.

Applies to