2 implementations of ITextFactoryService
Microsoft.CodeAnalysis.EditorFeatures (1)
Workspaces\EditorTextFactoryService.cs (1)
25IContentTypeRegistryService contentTypeRegistryService) : ITextFactoryService
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\TextFactory\TextFactoryService.cs (1)
17internal sealed class TextFactoryService : ITextFactoryService
30 references to ITextFactoryService
Microsoft.CodeAnalysis.EditorFeatures (1)
Workspaces\EditorTextFactoryService.cs (1)
19[ExportWorkspaceService(typeof(ITextFactoryService), ServiceLayer.Editor), Shared]
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Workspaces\TextFactoryTests.cs (5)
27var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 40var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 53var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 66var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 118private static void TestCreateTextInferredEncoding(ITextFactoryService textFactoryService, byte[] bytes, Encoding? defaultEncoding, Encoding expectedEncoding)
Microsoft.CodeAnalysis.Workspaces (14)
Serialization\SerializableSourceText.cs (1)
173ITextFactoryService textService,
Serialization\SerializerService.cs (2)
44private readonly ITextFactoryService _textService = workspaceServices.GetRequiredService<ITextFactoryService>();
Shared\Extensions\SourceTextExtensions.cs (1)
226public static SourceText ReadFrom(ITextFactoryService textService, ObjectReader reader, Encoding? encoding, SourceHashAlgorithm checksumAlgorithm, CancellationToken cancellationToken)
TemporaryStorage\TemporaryStorageService.cs (2)
54private readonly ITextFactoryService _textFactory; 91private TemporaryStorageService(IWorkspaceThreadingService? workspaceThreadingService, ITextFactoryService textFactory)
TemporaryStorage\TemporaryStorageService.Factory.cs (2)
29var textFactory = workspaceServices.GetRequiredService<ITextFactoryService>();
Workspace\Host\HostWorkspaceServices.cs (2)
119internal virtual ITextFactoryService TextFactory 121get { return this.GetRequiredService<ITextFactoryService>(); }
Workspace\Host\TextFactory\TextFactoryService.cs (1)
16[ExportWorkspaceService(typeof(ITextFactoryService), ServiceLayer.Default), Shared]
Workspace\WorkspaceFileTextLoader.cs (3)
15/// <see cref="FileTextLoader"/> that uses workspace services (i.e. <see cref="ITextFactoryService"/>) to load file content. 20private readonly ITextFactoryService _textFactory; 27_textFactory = services.GetRequiredService<ITextFactoryService>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
UtilityTest\SourceTextSerializationTests.cs (1)
25var textService = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>());
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (9)
34var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 54var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 91var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 109var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 151var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 181var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 206var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 241var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 276var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>());