1 instantiation of TemporaryStorageService
Microsoft.CodeAnalysis.Workspaces (1)
TemporaryStorage\TemporaryStorageService.Factory.cs (1)
30
return new
TemporaryStorageService
(workspaceThreadingService, textFactory);
37 references to TemporaryStorageService
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Workspaces\TextFactoryTests.cs (4)
83
var
temporaryStorageService = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
103
var
temporaryStorageService = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
Microsoft.CodeAnalysis.Workspaces (8)
Serialization\SerializableSourceText.cs (2)
15
using static Microsoft.CodeAnalysis.Host.
TemporaryStorageService
;
172
TemporaryStorageService
storageService,
Serialization\SerializedPortableExecutableReference.cs (1)
14
using static
TemporaryStorageService
;
Serialization\SerializerService.cs (2)
43
private readonly Lazy<
TemporaryStorageService
> _storageService = new(() => (
TemporaryStorageService
)workspaceServices.GetRequiredService<ITemporaryStorageServiceInternal>());
Serialization\SerializerService_Reference.cs (2)
19
using static
TemporaryStorageService
;
433
var storageHandle =
TemporaryStorageService
.GetStreamHandle(storageIdentifier);
TemporaryStorage\TemporaryStorageService.cs (1)
245
TemporaryStorageService
storageService,
Microsoft.CodeAnalysis.Workspaces.UnitTests (19)
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (19)
21
using static
TemporaryStorageService
;
35
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
55
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
92
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
110
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
152
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
182
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
207
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
242
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
277
var
service = Assert.IsType<
TemporaryStorageService
>(workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>());
Microsoft.VisualStudio.LanguageServices (6)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (6)
27
using static
TemporaryStorageService
;
62
private readonly
TemporaryStorageService
_temporaryStorageService;
88
_temporaryStorageService = (
TemporaryStorageService
)workspace.Services.GetRequiredService<ITemporaryStorageServiceInternal>();
199
string fullPath,
TemporaryStorageService
temporaryStorageService)
213
string fullPath,
TemporaryStorageService
temporaryStorageService, out TemporaryStorageStreamHandle storageHandle, out UnmanagedMemoryStream stream)
373
string fullPath,
TemporaryStorageService
temporaryStorageService)