ISolutionService Interface

Definition

Provides functionality to work with solutions, filters and projects.

public interface class ISolutionService
public interface ISolutionService
type ISolutionService = interface
Public Interface ISolutionService

Methods

AreProjectsLoadedAsync(Guid[], CancellationToken)

Checks if the projects are loaded.

CloseSolutionAndFolderAsync(CancellationToken)

Closes the currently open solution or folder.

GetOpenCodeContainersStateAsync(CancellationToken)

Gets open code containers state.

GetPropertyValuesAsync(IReadOnlyList<Int32>, CancellationToken)

Gets the values of the properties for the solution.

GetSolutionTelemetryContextPropertyValuesAsync(IReadOnlyList<String>, CancellationToken)

Gets solution context related telemetry properties.

LoadProjectsAsync(Guid[], CancellationToken)

Loads projects without requiring any dependencies to be loaded.

LoadProjectsWithResultAsync(Guid[], CancellationToken)

Loads projects without requiring any dependencies to be loaded returning a ProjectLoadResult.

RemoveProjectsAsync(IReadOnlyList<Guid>, CancellationToken)

Removes projects from the solution.

RequestProjectEventsAsync(CancellationToken)

Request that project load events be raised. If this method is not called, instances of ISolutionService will not raise the ProjectLoadProgressChanged, ProjectsLoaded, ProjectsUnloaded events.

SaveSolutionFilterFileAsync(String, String, CancellationToken)

Saves a filter file at the specified location. It overwrites any existing file.

SubscribeToOpenCodeContainersStateAsync(IObserver<OpenCodeContainersState>, CancellationToken)

Attaches an observer for updates to open code containers state.

UnloadProjectsAsync(Guid[], ProjectUnloadReason, CancellationToken)

Unloads projects and sets the reason for unloading them.

Events

ProjectLoadProgressChanged

Raised when the project load status has changed.

ProjectsLoaded

Raised when a project is loaded.

ProjectsUnloaded

Raised when a project is unloaded.

Applies to