1 implementation of ITemporaryStorageTextHandle
Microsoft.CodeAnalysis.Workspaces (1)
TemporaryStorage\TrivialTemporaryStorageService.cs (1)
59
private sealed class TextStorage :
ITemporaryStorageTextHandle
13 references to ITemporaryStorageTextHandle
Microsoft.CodeAnalysis.Workspaces (13)
TemporaryStorage\TemporaryStorageService.cs (3)
96
ITemporaryStorageTextHandle
ITemporaryStorageServiceInternal.WriteToTemporaryStorage(SourceText text, CancellationToken cancellationToken)
99
async Task<
ITemporaryStorageTextHandle
> ITemporaryStorageServiceInternal.WriteToTemporaryStorageAsync(SourceText text, CancellationToken cancellationToken)
250
:
ITemporaryStorageTextHandle
TemporaryStorage\TrivialTemporaryStorageService.cs (3)
29
public
ITemporaryStorageTextHandle
WriteToTemporaryStorage(SourceText text, CancellationToken cancellationToken)
34
public Task<
ITemporaryStorageTextHandle
> WriteToTemporaryStorageAsync(SourceText text, CancellationToken cancellationToken)
36
return Task.FromResult<
ITemporaryStorageTextHandle
>(new TextStorage(text));
Workspace\Host\TemporaryStorage\ITemporaryStorageService.cs (2)
54
ITemporaryStorageTextHandle
WriteToTemporaryStorage(SourceText text, CancellationToken cancellationToken);
57
Task<
ITemporaryStorageTextHandle
> WriteToTemporaryStorageAsync(SourceText text, CancellationToken cancellationToken);
Workspace\Solution\TextDocumentState.cs (1)
77
public
ITemporaryStorageTextHandle
? StorageHandle
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (4)
51
public
ITemporaryStorageTextHandle
? StorageHandle
146
public
ITemporaryStorageTextHandle
? _storageHandle;
169
public
ITemporaryStorageTextHandle
? StorageHandle => _storageHandle;
195
var
handle = await _storageService.WriteToTemporaryStorageAsync(text, cancellationToken).ConfigureAwait(false);