102 interfaces inheriting from IWorkspaceService
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\ISemanticModelReuseWorkspaceService.cs (1)
16internal interface ISemanticModelReuseWorkspaceService : IWorkspaceService
Microsoft.CodeAnalysis.EditorFeatures (14)
BackgroundWorkIndicator\IBackgroundWorkIndicatorFactory.cs (1)
21internal interface IBackgroundWorkIndicatorFactory : IWorkspaceService
EditAndContinue\IActiveStatementTrackingService.cs (1)
14internal interface IActiveStatementTrackingService : IWorkspaceService, IActiveStatementSpanLocator
Editor\ITextUndoHistoryWorkspaceService.cs (1)
13internal interface ITextUndoHistoryWorkspaceService : IWorkspaceService
EditorConfigSettings\Aggregator\ISettingsAggregator.cs (1)
10internal interface ISettingsAggregator : IWorkspaceService
EditorConfigSettings\DataProvider\IWorkspaceSettingsProviderFactory.cs (1)
9internal interface IWorkspaceSettingsProviderFactory<TData> : ISettingsProviderFactory<TData>, IWorkspaceService
Host\IPreviewDialogService.cs (1)
14internal interface IPreviewDialogService : IWorkspaceService
Host\IPreviewPaneService.cs (1)
13internal interface IPreviewPaneService : IWorkspaceService
InlineRename\IInlineRenameUndoManager.cs (1)
18internal interface IInlineRenameUndoManager : IWorkspaceService
NavigateTo\INavigateToLinkService.cs (1)
14internal interface INavigateToLinkService : IWorkspaceService
Shared\ITextBufferSupportsFeatureService.cs (1)
10internal interface ITextBufferSupportsFeatureService : IWorkspaceService
Shared\Utilities\IWorkspaceContextService.cs (1)
14internal interface IWorkspaceContextService : IWorkspaceService
StringCopyPaste\IStringCopyPasteService.cs (1)
12internal interface IStringCopyPasteService : IWorkspaceService
Undo\IGlobalUndoService.cs (1)
14internal interface IGlobalUndoService : IWorkspaceService
Undo\ISourceTextUndoService.cs (1)
18internal interface ISourceTextUndoService : IWorkspaceService
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
NavigateTo\INavigateToPreviewService.cs (1)
14internal interface INavigateToPreviewService : IWorkspaceService
QuickInfo\IContentControlService.cs (1)
15internal interface IContentControlService : IWorkspaceService
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Navigation\IFSharpDocumentNavigationService.cs (1)
14internal interface IFSharpDocumentNavigationService : IWorkspaceService
Microsoft.CodeAnalysis.Features (38)
ChangeSignature\IChangeSignatureOptionsService.cs (1)
9internal interface IChangeSignatureOptionsService : IWorkspaceService
CodeFixes\FixAllOccurrences\IFixMultipleOccurrencesService.cs (1)
15internal interface IFixMultipleOccurrencesService : IWorkspaceService
CodeFixesAndRefactorings\IFixAllGetFixesService.cs (1)
13internal interface IFixAllGetFixesService : IWorkspaceService
CodeLens\ICodeLensReferencesService.cs (1)
12internal interface ICodeLensReferencesService : IWorkspaceService
CodeRefactorings\ICodeRefactoringHelpersService.cs (1)
9internal interface ICodeRefactoringHelpersService : IWorkspaceService
CodeRefactorings\WorkspaceServices\IAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
11internal interface IAddMetadataReferenceCodeActionOperationFactoryWorkspaceService : IWorkspaceService
CodeRefactorings\WorkspaceServices\ISymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
11internal interface ISymbolRenamedCodeActionOperationFactoryWorkspaceService : IWorkspaceService
Completion\Providers\ImportCompletionProvider\IImportCompletionCacheService.cs (1)
11internal interface IImportCompletionCacheService<TProject, TPortableExecutable> : IWorkspaceService
DesignerAttribute\IDesignerAttributeDiscoveryService.cs (1)
12internal partial interface IDesignerAttributeDiscoveryService : IWorkspaceService
Diagnostics\ICodeAnalysisDiagnosticAnalyzerService.cs (1)
16internal interface ICodeAnalysisDiagnosticAnalyzerService : IWorkspaceService
EditAndContinue\IActiveStatementSpanLocator.cs (1)
12internal interface IActiveStatementSpanLocator : IWorkspaceService
EditAndContinue\IEditAndContinueService.cs (1)
13internal interface IEditAndContinueWorkspaceService : IWorkspaceService
Emit\ICompilationOutputsProviderService.cs (1)
9internal interface ICompilationOutputsProviderService : IWorkspaceService
ExternalAccess\UnitTesting\API\IUnitTestingStackTraceServiceAccessor.cs (1)
12internal interface IUnitTestingStackTraceServiceAccessor : IWorkspaceService
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingSolutionCrawlerRegistrationService.cs (1)
12internal interface IUnitTestingSolutionCrawlerRegistrationService : IWorkspaceService
ExternalAccess\UnitTesting\SolutionCrawler\IUnitTestingSolutionCrawlerService.cs (1)
13internal interface IUnitTestingSolutionCrawlerService : IWorkspaceService
ExtractClass\IExtractClassOptionsService.cs (1)
12internal interface IExtractClassOptionsService : IWorkspaceService
ExtractInterface\IExtractInterfaceOptionsService.cs (1)
17internal interface IExtractInterfaceOptionsService : IWorkspaceService
FindUsages\IExternalDefinitionItemProvider.cs (1)
11internal interface IExternalDefinitionItemProvider : IWorkspaceService
GenerateType\IGenerateTypeOptionService.cs (1)
14internal interface IGenerateTypeOptionsService : IWorkspaceService
LegacySolutionEvents\ILegacySolutionEventsAggregationService.cs (1)
21internal interface ILegacySolutionEventsAggregationService : IWorkspaceService
MoveStaticMembers\IMoveStaticMembersOptionsService.cs (1)
10internal interface IMoveStaticMembersOptionsService : IWorkspaceService
MoveToNamespace\IMoveToNamespaceOptionsService.cs (1)
13internal interface IMoveToNamespaceOptionsService : IWorkspaceService
NavigateTo\INavigateToSearcherHost.cs (1)
29internal interface IWorkspaceNavigateToSearcherHostService : IWorkspaceService
Navigation\IDocumentNavigationService.cs (1)
13internal interface IDocumentNavigationService : IWorkspaceService
Navigation\ISymbolNavigationService.cs (1)
13internal interface ISymbolNavigationService : IWorkspaceService
Notification\INotificationService.cs (1)
11internal interface INotificationService : IWorkspaceService
PickMembers\IPickMembersService.cs (1)
12internal interface IPickMembersService : IWorkspaceService
ProjectManagement\IProjectManagementService.cs (1)
15internal interface IProjectManagementService : IWorkspaceService
PullMemberUp\Dialog\IPullMemberUpOptionsService.cs (1)
13internal interface IPullMemberUpOptionsService : IWorkspaceService
Shared\IDocumentSupportsFeatureService.cs (1)
14internal interface IDocumentSupportsFeatureService : IWorkspaceService
SolutionCrawler\ISolutionCrawlerOptionsService.cs (1)
9internal interface ISolutionCrawlerOptionsService : IWorkspaceService
StackTraceExplorer\IStackTraceExplorerService.cs (1)
12internal interface IStackTraceExplorerService : IWorkspaceService
SymbolMapping\ISymbolMappingService.cs (1)
11internal interface ISymbolMappingService : IWorkspaceService
UnusedReferences\IReferenceCleanupService.cs (1)
12internal interface IReferenceCleanupService : IWorkspaceService
UnusedReferences\IUnusedReferenceAnalysisService.cs (1)
12internal interface IUnusedReferenceAnalysisService : IWorkspaceService
ValueTracking\IValueTrackingService.cs (1)
13internal interface IValueTrackingService : IWorkspaceService
Workspace\ICompileTimeSolutionProvider.cs (1)
12internal interface ICompileTimeSolutionProvider : IWorkspaceService
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Diagnostics\IDiagnosticProjectInformationService.cs (1)
13internal interface IDiagnosticProjectInformationService : IWorkspaceService
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\IPerformanceTrackerService.cs (1)
12internal interface IPerformanceTrackerService : IWorkspaceService
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ISolutionSynchronizationService.cs (1)
9internal interface ISolutionAssetStorageProvider : IWorkspaceService
Microsoft.CodeAnalysis.Workspaces (41)
Diagnostics\IWorkspaceVenusSpanMappingService.cs (1)
12internal interface IWorkspaceVenusSpanMappingService : IWorkspaceService
ErrorReporting\IErrorReportingService.cs (1)
11internal interface IErrorReportingService : IWorkspaceService
ExtensionManager\IExtensionManager.cs (1)
10internal interface IExtensionManager : IWorkspaceService
FindSymbols\SymbolTree\ISymbolTreeInfoCacheService.cs (1)
15internal interface ISymbolTreeInfoCacheService : IWorkspaceService
Formatting\Rules\IHostDependentFormattingRuleFactoryService.cs (1)
11internal interface IHostDependentFormattingRuleFactoryService : IWorkspaceService
Log\IErrorLogger.cs (1)
12internal interface IErrorLoggerService : IWorkspaceService
Options\ILegacyGlobalOptionsWorkspaceService.cs (1)
13internal interface ILegacyGlobalOptionsWorkspaceService : IWorkspaceService
Options\ILegacyWorkspaceOptionService.cs (1)
15internal interface ILegacyWorkspaceOptionService : IWorkspaceService
Packaging\IPackageInstallerService.cs (1)
15internal interface IPackageInstallerService : IWorkspaceService
Remote\IRemoteHostClientProvider.cs (1)
14internal interface IRemoteHostClientProvider : IWorkspaceService
Remote\IRemoteHostClientShutdownCancellationService.cs (1)
12internal interface IRemoteHostClientShutdownCancellationService : IWorkspaceService
Remote\ISerializerService.cs (1)
11internal interface ISerializerService : IWorkspaceService
Shared\Utilities\IWorkspaceThreadingService.cs (1)
33internal interface IWorkspaceThreadingServiceProvider : IWorkspaceService
SourceGeneratorTelemetry\ISourceGeneratorTelemetryCollectorWorkspaceService.cs (1)
11internal interface ISourceGeneratorTelemetryCollectorWorkspaceService : IWorkspaceService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\ISemanticModelReuseWorkspaceService.cs (1)
16internal interface ISemanticModelReuseWorkspaceService : IWorkspaceService
SymbolSearch\ISymbolSearchService.cs (1)
17internal interface ISymbolSearchService : IWorkspaceService
Telemetry\IWorkspaceTelemetryService.cs (1)
14internal interface IWorkspaceTelemetryService : IWorkspaceService
Workspace\DocumentTracking\IDocumentTrackingService.cs (1)
22internal interface IDocumentTrackingService : IWorkspaceService
Workspace\Host\Caching\IWorkspaceCacheService.cs (1)
14internal interface IWorkspaceCacheService : IWorkspaceService
Workspace\Host\Documentation\IDocumentationProviderService.cs (1)
7internal interface IDocumentationProviderService : IWorkspaceService
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
18internal interface IWorkspaceEventListenerService : IWorkspaceService
Workspace\Host\IFallbackAnalyzerConfigOptionsProvider.cs (1)
15internal interface IFallbackAnalyzerConfigOptionsProvider : IWorkspaceService
Workspace\Host\ISupportedChangesService.cs (1)
15public interface ISupportedChangesService : IWorkspaceService
Workspace\Host\IWorkpacePartialSolutionsTestHook.cs (1)
7internal interface IWorkspacePartialSolutionsTestHook : IWorkspaceService
Workspace\Host\IWorkspaceTestLogger.cs (1)
7internal interface IWorkspaceTestLogger : IWorkspaceService
Workspace\Host\Metadata\IAnalyzerAssemblyLoaderProvider.cs (1)
19internal interface IAnalyzerAssemblyLoaderProvider : IWorkspaceService
Workspace\Host\Metadata\IAnalyzerService.cs (1)
11public interface IAnalyzerService : IWorkspaceService
Workspace\Host\Metadata\IFrameworkAssemblyPathResolver.cs (1)
13internal interface IFrameworkAssemblyPathResolver : IWorkspaceService
Workspace\Host\Metadata\IMetadataService.cs (1)
9internal interface IMetadataService : IWorkspaceService
Workspace\Host\PersistentStorage\IPersistentStorageConfiguration.cs (1)
20internal interface IPersistentStorageConfiguration : IWorkspaceService
Workspace\Host\PersistentStorage\IPersistentStorageService.cs (1)
14public interface IPersistentStorageService : IWorkspaceService
Workspace\Host\Status\IWorkspaceStatusService.cs (1)
21internal interface IWorkspaceStatusService : IWorkspaceService
Workspace\Host\TaskScheduler\ITaskSchedulerProvider.cs (1)
12internal interface ITaskSchedulerProvider : IWorkspaceService
Workspace\Host\TaskScheduler\IWorkspaceAsynchronousOperationListenerProvider.cs (1)
12internal interface IWorkspaceAsynchronousOperationListenerProvider : IWorkspaceService
Workspace\Host\TemporaryStorage\ITemporaryStorageService.cs (2)
14public interface ITemporaryStorageService : IWorkspaceService 29internal interface ITemporaryStorageServiceInternal : IWorkspaceService
Workspace\Host\TextFactory\ITextFactoryService.cs (1)
15internal interface ITextFactoryService : IWorkspaceService
Workspace\ISolutionAnalyzerSetterWorkspaceService.cs (1)
16internal interface ISolutionAnalyzerSetterWorkspaceService : IWorkspaceService
Workspace\IWorkspaceConfigurationService.cs (1)
12internal interface IWorkspaceConfigurationService : IWorkspaceService
Workspace\ProjectSystem\IRuleSetManager.cs (1)
10internal interface IRuleSetManager : IWorkspaceService
Workspace\Solution\IDocumentTextDifferencingService.cs (1)
15internal interface IDocumentTextDifferencingService : IWorkspaceService
Microsoft.VisualStudio.LanguageServices (2)
Implementation\IHierarchyItemToProjectIdMap.cs (1)
15internal interface IHierarchyItemToProjectIdMap : IWorkspaceService
Snippets\ISnippetExpansionClientFactory.cs (1)
12internal interface ISnippetExpansionClientFactory : IWorkspaceService
1 implementation of IWorkspaceService
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
34internal sealed partial class VisualStudioMetadataReferenceManager : IWorkspaceService, IDisposable
104 references to IWorkspaceService
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (8)
17[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 25private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 28private ImmutableDictionary<Type, (Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, bool usesFactory)> _serviceMap 29= ImmutableDictionary<Type, (Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, bool usesFactory)>.Empty; 45var services = host.GetExports<IWorkspaceService, WorkspaceServiceMetadata>() 48.Select(lz => (new Lazy<IWorkspaceService, WorkspaceServiceMetadata>(() => lz.Value.CreateService(this), lz.Metadata), usesFactory: true)); 138private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, out bool usesFactory) 214internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (1)
10/// MEF metadata class used for finding <see cref="IWorkspaceService"/> and <see cref="IWorkspaceServiceFactory"/> exports.
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\SemanticModelReuseWorkspaceServiceFactory.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.EditorFeatures (9)
CodeRefactorings\EditorLayerCodeActionHelpersService.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
EditAndContinue\ActiveStatementTrackingService.cs (1)
46public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Editor\EditorLayerExtensionManager.cs (1)
36public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
EditorConfigSettings\Aggregator\SettingsAggregatorFactory.cs (1)
24public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsWorkspaceServiceFactory.cs (1)
21public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
EditorConfigSettings\DataProvider\NamingStyles\NamingStyleSettingsWorkspaceServiceFactory.cs (1)
21public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
InlineRename\UndoManagerServiceFactory.cs (1)
29public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Undo\NoOpGlobalUndoServiceFactory.cs (1)
30public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspaces\TextUndoHistoryWorkspaceServiceFactoryService.cs (1)
23public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
DocumentTracking\FirstDocumentIsActiveAndVisibleDocumentTrackingService.cs (1)
41public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
NavigateTo\AbstractNavigateToTests.cs (1)
259public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
RenameTracking\MockPreviewDialogService.cs (1)
46public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspaces\TestFormattingRuleFactoryServiceFactory.cs (1)
26public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (4)
Utilities\GoToHelpers\MockDocumentNavigationServiceFactory.vb (1)
20Public Function CreateService(workspaceServices As HostWorkspaceServices) As IWorkspaceService Implements IWorkspaceServiceFactory.CreateService
Utilities\GoToHelpers\MockSymbolNavigationServiceFactory.vb (1)
20Public Function CreateService(workspaceServices As HostWorkspaceServices) As IWorkspaceService Implements IWorkspaceServiceFactory.CreateService
Utilities\MockDocumentNavigationServiceProvider.vb (1)
27Public Function CreateService(workspaceServices As HostWorkspaceServices) As IWorkspaceService Implements IWorkspaceServiceFactory.CreateService
Utilities\MockSymbolNavigationServiceProvider.vb (1)
29Public Function CreateService(workspaceServices As HostWorkspaceServices) As IWorkspaceService Implements IWorkspaceServiceFactory.CreateService
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
Interactive\InteractiveDocumentNavigationServiceFactory.cs (1)
24public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Interactive\InteractiveGlobalUndoServiceFactory.cs (1)
27public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Interactive\InteractiveTextUndoHistoryWorkspaceServiceFactory.cs (1)
27public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
NavigateTo\DefaultNavigateToPreviewServiceFactory.cs (1)
26public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Notification\EditorNotificationServiceFactory.cs (1)
30public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.Features (9)
CodeLens\CodeLensReferencesServiceFactory.cs (1)
25public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
CodeRefactorings\ServicesLayerCodeActionHelpersService.cs (1)
23public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionCacheServiceFactory.cs (1)
38public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (1)
23public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerService.cs (1)
19/// more than one <see cref="IWorkspaceService"/>.
ExternalAccess\UnitTesting\UnitTestingStackTraceServiceAccessorFactory.cs (1)
26public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
MetadataAsSource\SymbolMappingServiceFactory.cs (1)
25public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Navigation\DefaultSymbolNavigationServiceFactory.cs (1)
25public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\CompileTimeSolutionProvider.cs (1)
38public IWorkspaceService? CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\MetadataService.cs (1)
20public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
SolutionAssetStorageProvider.cs (1)
25public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.Workspaces (37)
FindSymbols\SymbolTree\SymbolTreeInfoCacheServiceFactory.cs (1)
21public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Serialization\SerializerService.cs (1)
32public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (8)
17[assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] 25private readonly ImmutableArray<(Lazy<IWorkspaceService, WorkspaceServiceMetadata> lazyService, bool usesFactory)> _services; 28private ImmutableDictionary<Type, (Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, bool usesFactory)> _serviceMap 29= ImmutableDictionary<Type, (Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, bool usesFactory)>.Empty; 45var services = host.GetExports<IWorkspaceService, WorkspaceServiceMetadata>() 48.Select(lz => (new Lazy<IWorkspaceService, WorkspaceServiceMetadata>(() => lz.Value.CreateService(this), lz.Metadata), usesFactory: true)); 138private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, out bool usesFactory) 214internal sealed class LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (1)
10/// MEF metadata class used for finding <see cref="IWorkspaceService"/> and <see cref="IWorkspaceServiceFactory"/> exports.
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\WorkspaceServices\SemanticModelReuse\SemanticModelReuseWorkspaceServiceFactory.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Storage\LegacyPersistentStorageService.cs (1)
28public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Storage\SQLite\v2\SQLitePersistentStorageService.cs (2)
21IAsynchronousOperationListener asyncListener) : AbstractPersistentStorageService(configuration), IWorkspaceService 31public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
TemporaryStorage\TemporaryStorageService.Factory.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\Documentation\DocumentationProviderServiceFactory.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\EventListener\IWorkspaceEventListenerProvider.cs (1)
30public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\HostLanguageServices.cs (1)
18/// the same ownership rules as <see cref="IWorkspaceService"/>, and instances of
Workspace\Host\HostWorkspaceServices.cs (5)
20/// <see cref="IWorkspaceService"/> or <see cref="IWorkspaceServiceFactory"/> instances are provided directly to the 31/// <strong><see cref="IWorkspaceService"/> instance constructed externally (e.g. MEF):</strong> Owned by the 39/// <strong><see cref="IWorkspaceService"/> instance constructed by <see cref="IWorkspaceServiceFactory"/> within 64public abstract TWorkspaceService? GetService<TWorkspaceService>() where TWorkspaceService : IWorkspaceService; 83public TWorkspaceService GetRequiredService<TWorkspaceService>() where TWorkspaceService : IWorkspaceService
Workspace\Host\ISupportedChangesService.cs (1)
36public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (3)
12/// Use this attribute to declare a <see cref="IWorkspaceService"/> implementation for inclusion in a MEF-based workspace. 15/// Declares a <see cref="IWorkspaceService"/> implementation for inclusion in a MEF-based workspace. 21public class ExportWorkspaceServiceAttribute(Type serviceType, string layer = ServiceLayer.Default) : ExportAttribute(typeof(IWorkspaceService))
Workspace\Host\Mef\IWorkspaceServiceFactory.cs (4)
10/// A factory that creates instances of a specific <see cref="IWorkspaceService"/>. 12/// Implement a <see cref="IWorkspaceServiceFactory"/> when you want to provide <see cref="IWorkspaceService"/> instances that use other services. 17/// Creates a new <see cref="IWorkspaceService"/> instance. 21IWorkspaceService CreateService(HostWorkspaceServices workspaceServices);
Workspace\Host\Metadata\FrameworkAssemblyPathResolverFactory.cs (1)
20public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\Metadata\MetadataServiceFactory.cs (1)
22public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\Host\SolutionServices.cs (2)
36public TWorkspaceService? GetService<TWorkspaceService>() where TWorkspaceService : IWorkspaceService 40public TWorkspaceService GetRequiredService<TWorkspaceService>() where TWorkspaceService : IWorkspaceService
Workspace\ISolutionAnalyzerSetterWorkspaceService.cs (1)
28public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
506where TWorkspaceService : IWorkspaceService
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Fakes\MockWorkspaceEventListenerProvider.cs (1)
22public IWorkspaceService? CreateService(HostWorkspaceServices workspaceServices)
Remote\InProcRemoteHostClientProvider.cs (1)
34public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Remote\TestSerializerService.cs (1)
163public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SourceGeneratorTelemetryCollectorWorkspaceServiceTests.cs (1)
47public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Microsoft.VisualStudio.LanguageServices (19)
EditorConfigSettings\DataProvider\CodeStyle\CommonCodeStyleSettingsWorkspaceServiceFactory.cs (1)
26public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
EditorConfigSettings\DataProvider\Whitespace\CommonWhitespaceSettingsWorkspaceServiceFactory.cs (1)
26public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
GenerateType\VisualStudioGenerateTypeOptionsServiceFactory.cs (1)
28public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
InlineRename\InlineRenameUndoManager.cs (1)
49public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
NavigateTo\VisualStudioNavigateToPreviewServiceFactory.cs (1)
27public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Notification\VSNotificationServiceFactory.cs (1)
31public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Preview\PreviewService.cs (1)
28public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
PreviewPane\PreviewPaneService.cs (1)
38IWorkspaceService IWorkspaceServiceFactory.CreateService(HostWorkspaceServices workspaceServices)
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
35public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManagerFactory.cs (1)
23public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceProviderServiceFactory.cs (1)
18public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
ProjectSystem\RuleSets\VisualStudioRuleSetManagerFactory.cs (1)
34public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
24public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Remote\VisualStudioRemoteHostClientProvider.cs (1)
61public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\GlobalUndoServiceFactory.cs (1)
40public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\VisualStudioDocumentTrackingServiceFactory.cs (1)
19public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (1)
54public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\VisualStudioTextUndoHistoryWorkspaceServiceFactory.cs (1)
32public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (1)
36public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices)