2 implementations of ITextFactoryService
Microsoft.CodeAnalysis.EditorFeatures (1)
Workspaces\EditorTextFactoryService.cs (1)
20internal sealed class EditorTextFactoryService : ITextFactoryService
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\TextFactory\TextFactoryService.cs (1)
17internal sealed class TextFactoryService : ITextFactoryService
32 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)
28var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 41var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 54var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 67var textFactoryService = Assert.IsType<EditorTextFactoryService>(workspace.Services.GetRequiredService<ITextFactoryService>()); 120private static void TestCreateTextInferredEncoding(ITextFactoryService textFactoryService, byte[] bytes, Encoding? defaultEncoding, Encoding expectedEncoding)
Microsoft.CodeAnalysis.Workspaces (14)
Serialization\SerializableSourceText.cs (1)
147ITextFactoryService textService,
Serialization\SerializerService.cs (2)
41private readonly ITextFactoryService _textService; 53_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.Factory.cs (2)
31var textFactory = workspaceServices.GetRequiredService<ITextFactoryService>();
TemporaryStorage\TemporaryStorageServiceFactory.cs (2)
53private readonly ITextFactoryService _textFactory; 99private TemporaryStorageService(IWorkspaceThreadingService? workspaceThreadingService, ITextFactoryService textFactory)
Workspace\Host\HostWorkspaceServices.cs (2)
82internal virtual ITextFactoryService TextFactory 84get { 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 (12)
UtilityTest\SourceTextSerializationTests.cs (1)
25var textService = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>());
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (11)
28var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 48var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 91var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 112var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 136var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 156var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 202var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 235var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 262var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 299var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>()); 336var textFactory = Assert.IsType<TextFactoryService>(workspace.Services.GetService<ITextFactoryService>());