11 references to ExportProviderCache
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (11)
MEF\ExportProviderCache.cs (1)
139
throw new InvalidOperationException($"{nameof(
ExportProviderCache
)} may only be used from tests marked with {nameof(UseExportProviderAttribute)}");
MEF\TestComposition.cs (3)
110
var newFactory =
ExportProviderCache
.CreateExportProviderFactory(GetCatalog(), IsRemote);
135
return
ExportProviderCache
.CreateAssemblyCatalog(Assemblies,
ExportProviderCache
.CreateResolver()).WithoutPartsOfTypes(ExcludedPartTypes).WithParts(Parts);
MEF\UseExportProviderAttribute.cs (7)
72
ExportProviderCache
.SetEnabled_OnlyUseExportProviderAttributeCanCall(true);
91
DisposeExportProvider(
ExportProviderCache
.LocalExportProviderForCleanup);
92
DisposeExportProvider(
ExportProviderCache
.RemoteExportProviderForCleanup);
102
ExportProviderCache
.SetEnabled_OnlyUseExportProviderAttributeCanCall(false);
181
ExportProviderCache
.LocalExportProviderForCleanup != null)
188
exportProvider =
ExportProviderCache
.LocalExportProviderForCleanup;
192
exportProvider =
ExportProviderCache
.GetOrCreateExportProviderFactory(assemblies).CreateExportProvider();