1 write to _scope
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\ExportProviderCache.cs (1)
127
_scope
= scope;
6 references to _scope
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
MEF\ExportProviderCache.cs (6)
142
var expectedCatalog = Interlocked.CompareExchange(ref
_scope
.ExpectedCatalog, _catalog, null) ?? _catalog;
145
var expected =
_scope
.ExpectedProviderForCatalog;
178
expected = Interlocked.CompareExchange(ref
_scope
.ExpectedProviderForCatalog, expected, null) ?? expected;
179
Interlocked.CompareExchange(ref
_scope
.CurrentExportProvider, expected, null);
182
var exportProvider =
_scope
.CurrentExportProvider;
226
throw new InvalidOperationException($"Only one {
_scope
.Name} {nameof(ExportProvider)} can be created in the context of a single test.");