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