5 implementations of GetExports
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
VisualStudioMefHostServices.cs (1)
61public IEnumerable<Lazy<TExtension>> GetExports<TExtension>()
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
61public IEnumerable<Lazy<TExtension>> GetExports<TExtension>()
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\Mef\MefHostServices.cs (1)
63IEnumerable<Lazy<TExtension>> IMefHostExportProvider.GetExports<TExtension>()
Microsoft.CodeAnalysis.Workspaces.Desktop (1)
Workspace\Host\Mef\MefV1HostServices.cs (1)
98public IEnumerable<Lazy<TExtension>> GetExports<TExtension>()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\UseExportProviderAttribute.cs (1)
227IEnumerable<Lazy<TExtension>> IMefHostExportProvider.GetExports<TExtension>()
20 references to GetExports
AnalyzerRunner (1)
IncrementalAnalyzerRunner.cs (1)
45var globalOptions = exportProvider.GetExports<IGlobalOptionService>().Single().Value;
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\EditAndContinueDiagnosticAnalyzer.cs (1)
64if (mefServices.GetExports<EditAndContinueLanguageService>().SingleOrDefault()?.Value.IsSessionActive != true)
Remote\SolutionChecksumUpdater.cs (1)
53_globalOperationService = workspace.Services.SolutionServices.ExportProvider.GetExports<IGlobalOperationNotificationService>().FirstOrDefault()?.Value;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
TextEditor\OpenDocumentTests.cs (1)
32var textBufferFactoryService = ((IMefHostExportProvider)hostServices).GetExports<ITextBufferFactoryService>().Single().Value;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
QuickInfo\Extensions.cs (2)
23var cloneServices = workspace.Services.SolutionServices.ExportProvider.GetExports<ITextBufferCloneService>(); 39var cloneServices = document.Project.Solution.Services.ExportProvider.GetExports<ITextBufferCloneService>();
Microsoft.CodeAnalysis.Features (2)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
94var globalNotificationService = _registration.Services.ExportProvider.GetExports<IGlobalOperationNotificationService>().FirstOrDefault()?.Value;
SolutionCrawler\WorkCoordinator.IncrementalAnalyzerProcessor.cs (1)
82.GetExports<IGlobalOperationNotificationService>().FirstOrDefault()?.Value;
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\AsynchronousOperationListener\RemoteAsynchronousOperationListenerService.cs (2)
42var listenerProvider = exportProvider.GetExports<AsynchronousOperationListenerProvider>().Single().Value; 54var listenerProvider = exportProvider.GetExports<AsynchronousOperationListenerProvider>().Single().Value;
Services\GlobalNotificationDelivery\RemoteGlobalNotificationDeliveryService.cs (1)
55=> (RemoteGlobalOperationNotificationService)GetWorkspace().Services.SolutionServices.ExportProvider.GetExports<IGlobalOperationNotificationService>().Single().Value;
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (1)
75var globalOperationNotificationService = services.SolutionServices.ExportProvider.GetExports<IGlobalOperationNotificationService>().Single().Value;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
MEF\IMefHostExportProviderExtensions.cs (2)
16=> provider.GetExports<TExtension>().Single().Value; 19=> provider.GetExports<TExtension>().Select(l => l.Value);
Microsoft.VisualStudio.LanguageServices (4)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
233var taskListService = this.Services.SolutionServices.ExportProvider.GetExports<VisualStudioTaskListService>().Single().Value;
Remote\GlobalNotificationRemoteDeliveryService.cs (2)
56var globalOperationService = _services.ExportProvider.GetExports<IGlobalOperationNotificationService>().Single().Value; 63var globalOperationService = _services.ExportProvider.GetExports<IGlobalOperationNotificationService>().Single().Value;
Workspace\VisualStudioSymbolNavigationService.cs (1)
97foreach (var lazyService in solution.Services.ExportProvider.GetExports<ICrossLanguageSymbolNavigationService>())
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
PersistentStorage\SQLiteV2PersistentStorageTests.cs (2)
28exportProvider.GetExports<SQLiteConnectionPoolService>().Single().Value, 30exportProvider.GetExports<IAsynchronousOperationListenerProvider>().Single().Value.GetListener(FeatureAttribute.PersistentStorage),