24 references to Scope
Microsoft.CodeAnalysis.Remote.Workspaces (24)
BrokeredServiceConnection.cs (10)
169
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
185
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
202
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
218
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
237
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
256
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false);
275
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
294
using
var
scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false);
311
using
var
scope1 = await _solutionAssetStorage.StoreAssetsAsync(compilationState1, cancellationToken).ConfigureAwait(false);
312
using
var
scope2 = await _solutionAssetStorage.StoreAssetsAsync(compilationState2, cancellationToken).ConfigureAwait(false);
RemoteHostAssetWriter.cs (2)
54
PipeWriter pipeWriter,
Scope
scope, AssetPath assetPath, ReadOnlyMemory<Checksum> checksums, ISerializerService serializer)
66
private readonly
Scope
_scope = scope;
SolutionAssetStorage.cs (11)
34
private readonly Dictionary<Checksum,
Scope
> _checksumToScope = [];
36
public
Scope
GetScope(Checksum solutionChecksum)
40
if (!_checksumToScope.TryGetValue(solutionChecksum, out
var
scope))
51
/// Adds given snapshot into the storage. This snapshot will be available within the returned <see cref="
Scope
"/>.
53
public ValueTask<
Scope
> StoreAssetsAsync(Solution solution, CancellationToken cancellationToken)
57
public ValueTask<
Scope
> StoreAssetsAsync(Project project, CancellationToken cancellationToken)
61
public ValueTask<
Scope
> StoreAssetsAsync(SolutionCompilationState compilationState, CancellationToken cancellationToken)
65
public async ValueTask<
Scope
> StoreAssetsAsync(SolutionCompilationState compilationState, ProjectId? projectId, CancellationToken cancellationToken)
83
if (_checksumToScope.TryGetValue(checksum, out
var
scope))
96
private void DecreaseScopeRefCount(
Scope
scope)
101
var
existingScope = _checksumToScope[solutionChecksum];
SolutionAssetStorage.Scope.cs (1)
91
public readonly struct TestAccessor(
Scope
scope)