5 implementations of IMefHostExportProvider
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
VisualStudioMefHostServices.cs (1)
17internal sealed class VisualStudioMefHostServices : HostServices, IMefHostExportProvider
Microsoft.CodeAnalysis.Remote.Workspaces (1)
VisualStudioMefHostServices.cs (1)
17internal sealed class VisualStudioMefHostServices : HostServices, IMefHostExportProvider
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\Mef\MefHostServices.cs (1)
18public class MefHostServices : HostServices, IMefHostExportProvider
Microsoft.CodeAnalysis.Workspaces.Desktop (1)
Workspace\Host\Mef\MefV1HostServices.cs (1)
21public class MefV1HostServices : HostServices, IMefHostExportProvider
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\UseExportProviderAttribute.cs (1)
211private class ExportProviderMefHostServices : MefHostServices, IMefHostExportProvider
66 references to IMefHostExportProvider
AnalyzerRunner (1)
IncrementalAnalyzerRunner.cs (1)
43var exportProvider = _workspace.Services.SolutionServices.ExportProvider;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\RazorLineFormattingOptionsTests.cs (1)
43var globalOptions = ((IMefHostExportProvider)hostServices).GetExportedValue<IGlobalOptionService>();
Microsoft.CodeAnalysis.EditorFeatures (2)
EditAndContinue\EditAndContinueDiagnosticAnalyzer.cs (1)
58if (workspace.Services.HostServices is not IMefHostExportProvider mefServices)
Shared\Extensions\HostWorkspaceServicesExtensions.cs (1)
69var mefHostServices = hostWorkspaceServices.ExportProvider;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Diagnostics\TestDiagnosticAnalyzerDriver.cs (1)
37var mefServices = workspace.Services.SolutionServices.ExportProvider;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (10)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (9)
76var exportProvider = workspace.Services.SolutionServices.ExportProvider; 201var exportProvider = workspace.Services.SolutionServices.ExportProvider; 251var exportProvider = workspace.Services.SolutionServices.ExportProvider; 285var exportProvider = workspace.Services.SolutionServices.ExportProvider; 368var exportProvider = workspace.Services.SolutionServices.ExportProvider; 419var exportProvider = workspace.Services.SolutionServices.ExportProvider; 491var exportProvider = workspace.Services.SolutionServices.ExportProvider; 596var exportProvider = workspace.Services.SolutionServices.ExportProvider; 655var exportProvider = workspace.Services.SolutionServices.ExportProvider;
TextEditor\OpenDocumentTests.cs (1)
32var textBufferFactoryService = ((IMefHostExportProvider)hostServices).GetExports<ITextBufferFactoryService>().Single().Value;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (28)
Diagnostics\DiagnosticServiceTests.vb (28)
340Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 487Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 523Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 597Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 621Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 664Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 699Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 776Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 813Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 970Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1009Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1066Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1117Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1161Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1205Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1258Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1322Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1370Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1442Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 1993Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2054Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2122Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2162Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2223Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2265Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2313Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2364Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider) 2435Dim mefExportProvider = DirectCast(workspace.Services.HostServices, IMefHostExportProvider)
Microsoft.CodeAnalysis.Features (3)
Completion\CompletionService.ProviderManager.cs (1)
70var mefExporter = _service._services.ExportProvider;
QuickInfo\QuickInfoServiceWithProviders.cs (1)
35var mefExporter = _services.SolutionServices.ExportProvider;
Structure\BlockStructureServiceWithProviders.cs (1)
38var mefExporter = _services.ExportProvider;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\AsynchronousOperationListener\RemoteAsynchronousOperationListenerService.cs (2)
41var exportProvider = workspace.Services.SolutionServices.ExportProvider; 53var exportProvider = workspace.Services.SolutionServices.ExportProvider;
Microsoft.CodeAnalysis.Workspaces (8)
MefLanguageServices.cs (1)
35var hostServices = workspaceServices.HostExportProvider;
MefWorkspaceServices.cs (3)
23private readonly IMefHostExportProvider _exportProvider; 36public MefWorkspaceServices(IMefHostExportProvider host, Workspace workspace) 53internal IMefHostExportProvider HostExportProvider => _exportProvider;
Workspace\Host\Mef\MefHostServices.cs (2)
63IEnumerable<Lazy<TExtension>> IMefHostExportProvider.GetExports<TExtension>() 66IEnumerable<Lazy<TExtension, TMetadata>> IMefHostExportProvider.GetExports<TExtension, TMetadata>()
Workspace\Host\SolutionServices.cs (2)
32internal IMefHostExportProvider ExportProvider => (IMefHostExportProvider)_services.HostServices;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
MEF\IMefHostExportProviderExtensions.cs (2)
15public static TExtension GetExportedValue<TExtension>(this IMefHostExportProvider provider) 18public static IEnumerable<TExtension> GetExportedValues<TExtension>(this IMefHostExportProvider provider)
MEF\UseExportProviderAttribute.cs (2)
224IEnumerable<Lazy<TExtension, TMetadata>> IMefHostExportProvider.GetExports<TExtension, TMetadata>() 227IEnumerable<Lazy<TExtension>> IMefHostExportProvider.GetExports<TExtension>()
Remote\InProcRemoteHostClientProvider.cs (1)
50((IMefHostExportProvider)hostServices).GetExportedValue<TestSerializerService.Factory>().SharedTestGeneratorReferences = sharedTestGeneratorReferences;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
387var callbackDispatchers = ((IMefHostExportProvider)hostServices).GetExports<IRemoteServiceCallbackDispatcher, RemoteServiceCallbackDispatcherRegistry.ExportMetadata>();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
PersistentStorage\AbstractPersistentStorageTests.cs (1)
89IMefHostExportProvider exportProvider,
PersistentStorage\CloudCachePersistentStorageTests.cs (1)
19IMefHostExportProvider exportProvider, IPersistentStorageConfiguration configuration, IPersistentStorageFaultInjector? faultInjector, string relativePathBase)
PersistentStorage\SQLiteV2PersistentStorageTests.cs (1)
26internal override AbstractPersistentStorageService GetStorageService(IMefHostExportProvider exportProvider, IPersistentStorageConfiguration configuration, IPersistentStorageFaultInjector? faultInjector, string relativePathBase)
Roslyn.VisualStudio.Next.UnitTests (1)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
40var exportProvider = workspace.Services.SolutionServices.ExportProvider;