Udostępnij za pośrednictwem


HostWorkspaceServices Class

Definition

Per workspace services provided by the host environment.

public ref class HostWorkspaceServices abstract
public abstract class HostWorkspaceServices
type HostWorkspaceServices = class
Public MustInherit Class HostWorkspaceServices
Inheritance
HostWorkspaceServices

Constructors

HostWorkspaceServices()

Properties

HostServices

The host services this workspace services originated from.

PersistentStorage
Obsolete.

Obsolete. Roslyn no longer supports a mechanism to perform arbitrary persistence of data. If such functionality is needed, consumers are responsible for providing it themselves with whatever semantics are needed.

SupportedLanguages

A list of language names for supported language services.

TemporaryStorage
Obsolete.

Obsolete. Roslyn no longer supports a mechanism to store arbitrary data in-memory. If such functionality is needed, consumers are responsible for providing it themselves with whatever semantics are needed.

Workspace

The workspace corresponding to this workspace services instantiation

Methods

FindLanguageServices<TLanguageService>(HostWorkspaceServices+MetadataFilter)

Finds all language services of the corresponding type across all supported languages that match the filter criteria.

GetLanguageServices(String)

Gets the HostLanguageServices for the language name.

GetRequiredService<TWorkspaceService>()

Gets a workspace specific service provided by the host identified by the service type. If the host does not provide the service, this method throws InvalidOperationException.

GetService<TWorkspaceService>()

Gets a workspace specific service provided by the host identified by the service type. If the host does not provide the service, this method returns null.

IsSupported(String)

Returns true if the language is supported.

Applies to