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