Open sandboxFocus

Class WorkspaceCollection

Represents a set of workspaces. Two attempts to load a workspace with the same parameters, in the same WorkspaceCollection, will return the exact same instance, unless the Reset() method is called.

Inheritance
WorkspaceCollection
Namespace: Metalama.Framework.Workspaces
Assembly: Metalama.Framework.Workspaces.dll
Syntax
public sealed class WorkspaceCollection

Constructors

Name Description
WorkspaceCollection(GlobalServiceProvider?)

Properties

Name Description
Default

Gets the default instance of the WorkspaceCollection class. This is a singleton instance constructed without specifying a service provider.

IgnoreLoadErrors
ServiceBuilder

Methods

Name Description
Load(params string[])
LoadAsync(ImmutableArray<string>, ImmutableDictionary<string, string>?, bool, CancellationToken)
LoadAsync(params string[])
Reset()

Removes all cached workspaces, but not the set of registered services.

TryFindProject(Compilation, out Workspace?, out Project?, out bool)

Extension Methods