41 references to CompositionOptions
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Workspace\Host\Mef\MefV1HostServices.cs (2)
66var container = new CompositionContainer(catalog, compositionOptions: CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe);
System.ComponentModel.Composition (39)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (10)
49private readonly CompositionOptions _compositionOptions; 63: this(catalog, CompositionOptions.Default) 68: this(catalog, isThreadSafe ? CompositionOptions.IsThreadSafe : CompositionOptions.Default) 72public CatalogExportProvider(ComposablePartCatalog catalog, CompositionOptions compositionOptions) 75if (compositionOptions > (CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe | CompositionOptions.ExportCompositionService)) 95_lock = new CompositionLock(compositionOptions.HasFlag(CompositionOptions.IsThreadSafe)); 96_disableSilentRejection = compositionOptions.HasFlag(CompositionOptions.DisableSilentRejection);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (8)
24private readonly CompositionOptions _compositionOptions; 35: this(isThreadSafe ? CompositionOptions.IsThreadSafe : CompositionOptions.Default) 39public ComposablePartExportProvider(CompositionOptions compositionOptions) 41if (compositionOptions > (CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe | CompositionOptions.ExportCompositionService)) 47_lock = new CompositionLock(compositionOptions.HasFlag(CompositionOptions.IsThreadSafe));
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (10)
16private readonly CompositionOptions _compositionOptions; 74public CompositionContainer(CompositionOptions compositionOptions, params ExportProvider[]? providers) : 116: this(catalog, isThreadSafe ? CompositionOptions.IsThreadSafe : CompositionOptions.Default, providers) 137public CompositionContainer(ComposablePartCatalog? catalog, CompositionOptions compositionOptions, params ExportProvider[]? providers) 139if (compositionOptions > (CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe | CompositionOptions.ExportCompositionService)) 218if (compositionOptions.HasFlag(CompositionOptions.ExportCompositionService)) 229internal CompositionOptions CompositionOptions
System\ComponentModel\Composition\Hosting\CompositionService.cs (4)
32var compositionOptions = CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe | CompositionOptions.ExportCompositionService;
System\ComponentModel\Composition\Hosting\ImportEngine.cs (7)
28private readonly CompositionOptions _compositionOptions; 38: this(sourceProvider, CompositionOptions.Default) 43: this(sourceProvider, isThreadSafe ? CompositionOptions.IsThreadSafe : CompositionOptions.Default) 47public ImportEngine(ExportProvider sourceProvider, CompositionOptions compositionOptions) 54_lock = new CompositionLock(compositionOptions.HasFlag(CompositionOptions.IsThreadSafe)); 90if (_compositionOptions.HasFlag(CompositionOptions.DisableSilentRejection))