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