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