2 implementations of ITranslator
Microsoft.Build.Framework (2)
BinaryTranslator.cs (2)
57private class BinaryReadTranslator : ITranslator 813private class BinaryWriteTranslator : ITranslator
432 references to ITranslator
Microsoft.Build (282)
AssemblyLoadInfo.cs (2)
100public void Translate(ITranslator translator) 109public static AssemblyLoadInfo FactoryForTranslation(ITranslator translator)
AssemblyNameExtension.cs (3)
176internal AssemblyNameExtension(ITranslator translator) : this() 980public void Translate(ITranslator translator) 990(ITranslator t) => new AssemblyNameExtension(t),
BackEnd\BuildManager\BuildParameters.cs (3)
258private BuildParameters(ITranslator translator) 886void ITranslatable.Translate(ITranslator translator) 932internal static BuildParameters FactoryForDeserialization(ITranslator translator)
BackEnd\BuildManager\CacheSerialization.cs (2)
38var translator = BinaryTranslator.GetWriteTranslator(fileStream); 124using var translator = BinaryTranslator.GetReadTranslator(fileStream, InterningBinaryReader.PoolingBuffer);
BackEnd\BuildManager\RequestedProjectState.cs (3)
127void ITranslatable.Translate(ITranslator translator) 138private static void TranslateMetadataForItem(ITranslator translator, ref List<string> list) 143private static void TranslateString(ITranslator translator, ref string s)
BackEnd\Client\MSBuildClient.cs (1)
653ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(memoryStream);
BackEnd\Client\MSBuildClientPacketPump.cs (2)
67private readonly ITranslator _binaryReadTranslator; 121public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\BuildRequestEngine\BuildRequestConfigurationResponse.cs (3)
47private BuildRequestConfigurationResponse(ITranslator translator) 77public void Translate(ITranslator translator) 87internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Components\Caching\ConfigCache.cs (5)
360public void Translate(ITranslator translator) 364(ITranslator aTranslator, ref int configId) => aTranslator.Translate(ref configId), 365(ITranslator aTranslator, ref BuildRequestConfiguration configuration) => 381(ITranslator aTranslator, ref ConfigurationMetadata configMetadata) => aTranslator.Translate(ref configMetadata, ConfigurationMetadata.FactoryForDeserialization), 382(ITranslator aTranslator, ref int configId) => aTranslator.Translate(ref configId),
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
44public void Translate(ITranslator translator)
BackEnd\Components\Caching\ResultsCache.cs (4)
43public ResultsCache(ITranslator translator) 244public void Translate(ITranslator translator) 250(ITranslator aTranslator, ref int i) => aTranslator.Translate(ref i), 251(ITranslator aTranslator, ref BuildResult result) => aTranslator.Translate(ref result),
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (1)
35public void Translate(ITranslator translator)
BackEnd\Components\Communications\LogMessagePacket.cs (3)
33private LogMessagePacket(ITranslator translator) 41internal static INodePacket FactoryForDeserialization(ITranslator translator) 49private static void TranslateTargetFinishedEvent(ITranslator translator, TargetFinishedEventArgs finishedEvent)
BackEnd\Components\Communications\NodeManager.cs (1)
248public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
288public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
759ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(writeStream); 985ITranslator readTranslator = BinaryTranslator.GetReadTranslator(packetStream, _binaryReaderFactory);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
278public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
147public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\Communications\TranslatorExtensions.cs (3)
30public static void TranslateProjectPropertyInstanceDictionary(this ITranslator translator, ref PropertyDictionary<ProjectPropertyInstance> value) 68public static T FactoryForDeserializingTypeWithName<T>(this ITranslator translator) 101public static void TranslateOptionalBuildEventContext(this ITranslator translator, ref BuildEventContext buildEventContext)
BackEnd\Components\FileAccesses\FileAccessReport.cs (3)
15private FileAccessReport(ITranslator translator) => Translate(translator); 21public void Translate(ITranslator translator) => translator.Translate(ref _fileAccessData); 25internal static INodePacket FactoryForDeserialization(ITranslator translator) => new FileAccessReport(translator);
BackEnd\Components\FileAccesses\ProcessReport.cs (3)
15private ProcessReport(ITranslator translator) => Translate(translator); 22internal static INodePacket FactoryForDeserialization(ITranslator translator) => new ProcessReport(translator); 25public void Translate(ITranslator translator) => translator.Translate(ref _processData);
BackEnd\Components\ProjectCache\ProxyTargets.cs (2)
41void ITranslatable.Translate(ITranslator translator) 46internal static ProxyTargets FactoryForDeserialization(ITranslator translator)
BackEnd\Components\RequestBuilder\TargetSpecification.cs (2)
56void ITranslatable.Translate(ITranslator translator) 62internal static TargetSpecification FactoryForDeserialization(ITranslator translator)
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (3)
28public SdkResolverRequest(ITranslator translator) 76public static INodePacket FactoryForDeserialization(ITranslator translator) 81public void Translate(ITranslator translator)
BackEnd\Components\SdkResolution\SdkResult.cs (5)
20public SdkResult(ITranslator translator) 81public void Translate(ITranslator translator) 87translator.Translate(ref _additionalPaths, (ITranslator t, ref string s) => t.Translate(ref s), count => new List<string>(count)); 90keyTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 99public static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Components\SdkResolution\TranslationHelpers.cs (2)
14public static void Translate(this ITranslator t, ref SdkReference sdkReference) 37public static void Translate(this ITranslator t, ref SdkResultItem item)
BackEnd\Node\InProcNode.cs (1)
219public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Node\LoggingNodeConfiguration.cs (1)
40void ITranslatable.Translate(ITranslator translator)
BackEnd\Node\NodeConfiguration.cs (2)
159public void Translate(ITranslator translator) 187internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Node\OutOfProcNode.cs (1)
339void INodePacketFactory.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Node\OutOfProcServerNode.cs (1)
210void INodePacketFactory.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Node\PartialBuildTelemetry.cs (2)
38public void Translate(ITranslator translator) 45internal static PartialBuildTelemetry FactoryForDeserialization(ITranslator translator)
BackEnd\Node\ServerNodeBuildCancel.cs (2)
10public void Translate(ITranslator translator) 14internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Node\ServerNodeBuildCommand.cs (2)
108public void Translate(ITranslator translator) 122internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Node\ServerNodeBuildResult.cs (2)
32public void Translate(ITranslator translator) 41internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Node\ServerNodeConsoleWrite.cs (2)
34public void Translate(ITranslator translator) 40internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\BuildRequest.cs (3)
206private BuildRequest(ITranslator translator) 420public void Translate(ITranslator translator) 443internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\BuildRequestBlocker.cs (3)
76internal BuildRequestBlocker(ITranslator translator) 228public void Translate(ITranslator translator) 244internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\BuildRequestConfiguration.cs (7)
253private BuildRequestConfiguration(ITranslator translator) 707using ITranslator translator = GetConfigurationTranslator(TranslationDirection.WriteToStream, stream); 746using ITranslator translator = GetConfigurationTranslator(TranslationDirection.ReadFromStream, stream); 915public void Translate(ITranslator translator) 941internal void TranslateForFutureUse(ITranslator translator) 956internal static BuildRequestConfiguration FactoryForDeserialization(ITranslator translator) 1069private ITranslator GetConfigurationTranslator(TranslationDirection direction, Stream stream) =>
BackEnd\Shared\BuildRequestUnblocker.cs (3)
36internal BuildRequestUnblocker(ITranslator translator) 109public void Translate(ITranslator translator) 120internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\BuildResult.cs (3)
291private BuildResult(ITranslator translator) 609void ITranslatable.Translate(ITranslator translator) 687internal static BuildResult FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\ConfigurationMetadata.cs (3)
62public ConfigurationMetadata(ITranslator translator) 105public void Translate(ITranslator translator) 112public static ConfigurationMetadata FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\ResourceRequest.cs (3)
37internal ResourceRequest(ITranslator translator) 95public void Translate(ITranslator translator) 108internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\ResourceResponse.cs (3)
26internal ResourceResponse(ITranslator translator) 60public void Translate(ITranslator translator) 71internal static INodePacket FactoryForDeserialization(ITranslator translator)
BackEnd\Shared\TargetResult.cs (10)
78private TargetResult(ITranslator translator) 182void ITranslatable.Translate(ITranslator translator) 203internal static TargetResult FactoryForDeserialization(ITranslator translator) 255using ITranslator translator = GetResultsCacheTranslator(TranslationDirection.WriteToStream, stream); 272private void InternalTranslate(ITranslator translator) 292using ITranslator translator = GetResultsCacheTranslator(TranslationDirection.ReadFromStream, stream); 300private void TranslateItems(ITranslator translator) 313var itemTranslator = BinaryTranslator.GetWriteTranslator(itemsStream); 340using var itemTranslator = BinaryTranslator.GetReadTranslator(itemsStream, InterningBinaryReader.PoolingBuffer); 352private static ITranslator GetResultsCacheTranslator(TranslationDirection direction, Stream stream) =>
BackEnd\Shared\WorkUnitResult.cs (3)
95private WorkUnitResult(ITranslator translator) 124public void Translate(ITranslator translator) 136internal static WorkUnitResult FactoryForDeserialization(ITranslator translator)
Collections\LookasideStringInterner.cs (2)
60public LookasideStringInterner(ITranslator translator) 114public void Translate(ITranslator translator)
Definition\ProjectImportPathMatch.cs (3)
40public ProjectImportPathMatch(ITranslator translator) 60public void Translate(ITranslator translator) 70internal static ProjectImportPathMatch FactoryForDeserialization(ITranslator translator)
Definition\SubToolset.cs (3)
48private SubToolset(ITranslator translator) 83void ITranslatable.Translate(ITranslator translator) 92internal static SubToolset FactoryForDeserialization(ITranslator translator)
Definition\Toolset.cs (3)
363private Toolset(ITranslator translator) 610void ITranslatable.Translate(ITranslator translator) 680internal static Toolset FactoryForDeserialization(ITranslator translator)
ElementLocation\ElementLocation.cs (2)
141void ITranslatable.Translate(ITranslator translator) 157internal static ElementLocation FactoryForDeserialization(ITranslator translator)
ElementLocation\RegistryLocation.cs (3)
41private RegistryLocation(ITranslator translator) 84public void Translate(ITranslator translator) 92internal static RegistryLocation FactoryForDeserialization(ITranslator translator)
Evaluation\ToolsetProvider.cs (3)
49private ToolsetProvider(ITranslator translator) 82void ITranslatable.Translate(ITranslator translator) 90internal static ToolsetProvider FactoryForDeserialization(ITranslator translator)
FileAccess\FileAccessData.cs (1)
133void ITranslatable.Translate(ITranslator translator)
FileAccess\ProcessData.cs (1)
75void ITranslatable.Translate(ITranslator translator)
INodePacketFactory.cs (2)
13internal delegate INodePacket NodePacketFactoryMethod(ITranslator translator); 43void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator);
Instance\HostServices.cs (1)
307void ITranslatable.Translate(ITranslator translator)
Instance\ProjectInstance.cs (13)
687private ProjectInstance(ITranslator translator) 2361void ITranslatable.Translate(ITranslator translator) 2402internal void TranslateMinimalState(ITranslator translator) 2411private void TranslateAllState(ITranslator translator) 2433private void TranslateToolsetSpecificState(ITranslator translator) 2442private void TranslateProperties(ITranslator translator) 2457private void TranslateTargets(ITranslator translator) 2471private static void TranslatorForTargetSpecificDictionaryKey(ITranslator translator, ref string key) 2477private static void TranslatorForTargetSpecificDictionaryValue(ITranslator translator, ref List<TargetSpecification> value) 2482private void TranslateItems(ITranslator translator) 2661internal static ProjectInstance FactoryForDeserialization(ITranslator translator) 2774internal void Cache(ITranslator translator) 2789internal void RetrieveFromCache(ITranslator translator)
Instance\ProjectItemDefinitionInstance.cs (2)
223void ITranslatable.Translate(ITranslator translator) 229internal static ProjectItemDefinitionInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectItemGroupTaskInstance.cs (1)
126void ITranslatable.Translate(ITranslator translator)
Instance\ProjectItemGroupTaskItemInstance.cs (2)
441void ITranslatable.Translate(ITranslator translator) 466internal static ProjectItemGroupTaskItemInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectItemGroupTaskMetadataInstance.cs (2)
135void ITranslatable.Translate(ITranslator translator) 144internal static ProjectItemGroupTaskMetadataInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectItemInstance.cs (10)
592void ITranslatable.Translate(ITranslator translator) 620internal static ProjectItemInstance FactoryForDeserialization(ITranslator translator, ProjectInstance projectInstance) 873private TaskItem(ITranslator translator) 881private TaskItem(ITranslator translator, LookasideStringInterner interner) 1533void ITranslatable.Translate(ITranslator translator) 1721internal static TaskItem FactoryForDeserialization(ITranslator translator) 1729internal static TaskItem FactoryForDeserialization(ITranslator translator, LookasideStringInterner interner) 1734private void WriteInternString(ITranslator translator, LookasideStringInterner interner, ref string str) 1740private void ReadInternString(ITranslator translator, LookasideStringInterner interner, ref string str) 1749internal void TranslateWithInterning(ITranslator translator, LookasideStringInterner interner)
Instance\ProjectMetadataInstance.cs (3)
92private ProjectMetadataInstance(ITranslator translator) 175void ITranslatable.Translate(ITranslator translator) 227internal static ProjectMetadataInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectOnErrorInstance.cs (2)
115void ITranslatable.Translate(ITranslator translator) 130internal static new ProjectOnErrorInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectPropertyGroupTaskInstance.cs (1)
125void ITranslatable.Translate(ITranslator translator)
Instance\ProjectPropertyGroupTaskPropertyInstance.cs (2)
133void ITranslatable.Translate(ITranslator translator) 142internal static ProjectPropertyGroupTaskPropertyInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectPropertyInstance.cs (2)
172void ITranslatable.Translate(ITranslator translator) 271internal static ProjectPropertyInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectTargetInstance.cs (2)
550void ITranslatable.Translate(ITranslator translator) 585internal static ProjectTargetInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectTargetInstanceChild.cs (2)
45void ITranslatable.Translate(ITranslator translator) 51internal static ProjectTargetInstanceChild FactoryForDeserialization(ITranslator translator)
Instance\ProjectTaskInstance.cs (4)
358void ITranslatable.Translate(ITranslator translator) 391private static void ParametersKeyTranslator(ITranslator translator, ref string key) 396private static void ParametersValueTranslator(ITranslator translator, ref (string, ElementLocation) value) 418internal static new ProjectTaskInstance FactoryForDeserialization(ITranslator translator)
Instance\ProjectTaskInstanceChild.cs (2)
50void ITranslatable.Translate(ITranslator translator) 56internal static ProjectTaskInstanceChild FactoryForDeserialization(ITranslator translator)
Instance\ProjectTaskOutputItemInstance.cs (1)
136void ITranslatable.Translate(ITranslator translator)
Instance\ProjectTaskOutputPropertyInstance.cs (1)
136void ITranslatable.Translate(ITranslator translator)
Instance\TaskFactories\TaskHostTask.cs (1)
370public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
Instance\TaskRegistry.cs (10)
1050public void Translate(ITranslator translator) 1765public void Translate(ITranslator translator) 1774private static void TranslatorForTaskParametersKey(ITranslator translator, ref string key) 1780private static void TranslatorForTaskParameterValue(ITranslator translator, ref TaskPropertyInfo taskPropertyInfo) 1810public void Translate(ITranslator translator) 1828internal static RegisteredTaskRecord FactoryForDeserialization(ITranslator translator) 1837public void Translate(ITranslator translator) 1854private void TranslateTaskRegistrationKey(ITranslator translator, ref RegisteredTaskIdentity taskIdentity) 1860private void TranslateTaskRegistrationValue(ITranslator translator, ref List<RegisteredTaskRecord> taskRecords) 1865public static TaskRegistry FactoryForDeserialization(ITranslator translator)
Logging\LoggerDescription.cs (2)
345void ITranslatable.Translate(ITranslator translator) 354internal static LoggerDescription FactoryForTranslation(ITranslator translator)
Logging\TargetConsoleConfiguration.cs (2)
43public void Translate(ITranslator translator) 51internal static TargetConsoleConfiguration FactoryForDeserialization(ITranslator translator)
LogMessagePacketBase.cs (33)
337protected LogMessagePacketBase(ITranslator translator, TargetFinishedTranslator targetFinishedTranslator = null) 350internal delegate void TargetFinishedTranslator(ITranslator translator, TargetFinishedEventArgs finishedEvent); 403public void Translate(ITranslator translator) 422internal void WriteToStream(ITranslator translator) 489internal void ReadFromStream(ITranslator translator) 859private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 911private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 938private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 965private void WriteTaskCommandLineEventToStream(TaskCommandLineEventArgs taskCommandLineEventArgs, ITranslator translator) 980private void WriteBuildMessageEventToStream(BuildMessageEventArgs buildMessageEventArgs, ITranslator translator) 989private void WriteResponseFileUsedEventToStream(ResponseFileUsedEventArgs responseFileUsedEventArgs, ITranslator translator) 1002private void WriteProjectEvaluationStartedEventToStream(ProjectEvaluationStartedEventArgs args, ITranslator translator) 1007private void WriteProjectEvaluationFinishedEventToStream(ProjectEvaluationFinishedEventArgs args, ITranslator translator) 1017private static void WriteEvaluationEvent(BuildStatusEventArgs args, string projectFile, DateTime timestamp, ITranslator translator) 1025private void WriteProfileResult(ProfilerResult? result, ITranslator translator) 1043private void WriteEvaluationLocation(ITranslator translator, EvaluationLocation evaluationLocation) 1079private void WriteProfiledLocation(ITranslator translator, ProfiledLocation profiledLocation) 1095private void WriteProperties(IEnumerable properties, ITranslator translator) 1125private void WriteItems(IEnumerable items, ITranslator translator) 1210private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator) 1245private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1287private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1329private TaskCommandLineEventArgs ReadTaskCommandLineEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1347private BuildMessageEventArgs ReadBuildMessageEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1357private ResponseFileUsedEventArgs ReadResponseFileUsedEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1373private ProjectEvaluationStartedEventArgs ReadProjectEvaluationStartedEventFromStream(ITranslator translator) 1387private ProjectEvaluationFinishedEventArgs ReadProjectEvaluationFinishedEventFromStream(ITranslator translator) 1407ReadEvaluationEvent(ITranslator translator) 1421private IEnumerable ReadProperties(ITranslator translator) 1442private IEnumerable ReadItems(ITranslator translator) 1485private ProfilerResult? ReadProfileResult(ITranslator translator) 1510private EvaluationLocation ReadEvaluationLocation(ITranslator translator) 1559private ProfiledLocation ReadProfiledLocation(ITranslator translator)
NodeBuildComplete.cs (2)
66public void Translate(ITranslator translator) 74internal static NodeBuildComplete FactoryForDeserialization(ITranslator translator)
NodeEndpointOutOfProcBase.cs (1)
632ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(packetStream);
NodePacketFactory.cs (2)
50public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 99public void DeserializeAndRoutePacket(int nodeId, ITranslator translator)
NodeShutdown.cs (2)
105public void Translate(ITranslator translator) 114internal static NodeShutdown FactoryForDeserialization(ITranslator translator)
TaskHostConfiguration.cs (5)
412public void Translate(ITranslator translator) 446objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 453objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 460objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 471internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskHostTaskCancelled.cs (2)
33public void Translate(ITranslator translator) 41internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskHostTaskComplete.cs (2)
238public void Translate(ITranslator translator) 258internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskParameter.cs (11)
225public void Translate(ITranslator translator) 279internal static TaskParameter FactoryForDeserialization(ITranslator translator) 340private void TranslateITaskItemArray(ITranslator translator) 377private void TranslateITaskItem(ITranslator translator) 394private void WriteITaskItem(ITranslator translator, ITaskItem wrappedItem) 461private void ReadITaskItem(ITranslator translator, ref ITaskItem wrappedItem) 485private bool TranslateNullable<T>(ITranslator translator, T value) 505private void TranslatePrimitiveType(ITranslator translator) 580private void TranslatePrimitiveTypeArray(ITranslator translator) 662private void TranslateValueType(ITranslator translator) 687private void TranslateValueTypeArray(ITranslator translator)
TranslatorHelpers.cs (12)
30this ITranslator translator, 50void TranslateUsingValueFactory(ITranslator translator, ref T objectToTranslate) 59this ITranslator translator, 67this ITranslator translator, 76this ITranslator translator, 84this ITranslator translator, 93this ITranslator translator, 103this ITranslator translator, 114this ITranslator translator, 152public static void Translate(this ITranslator translator, ref CultureInfo cultureInfo) 174public static void Translate(this ITranslator translator, ref Version version) 216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
Microsoft.Build.Engine.UnitTests (18)
AssemblyNameEx_Tests.cs (8)
686ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 688writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 691ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 693readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t)); 710ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 712writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 715ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 717readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t));
BackEnd\BinaryTranslator_Tests.cs (5)
40using ITranslator readTranslator = BinaryTranslator.GetReadTranslator(stream, InterningBinaryReader.PoolingBuffer); 43using ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(stream); 929public static BaseClass FactoryForDeserialization(ITranslator translator) 939public virtual void Translate(ITranslator translator) 1023public override void Translate(ITranslator translator)
BackEnd\LoggingService_Tests.cs (1)
1522public void Translate(ITranslator translator)
BackEnd\NodeEndpointInProc_Tests.cs (2)
104public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 136public void Translate(ITranslator translator)
BackEnd\TranslationHelpers.cs (2)
31internal static ITranslator GetWriteTranslator() 41internal static ITranslator GetReadTranslator()
Microsoft.Build.Framework (7)
BinaryTranslator.cs (2)
38internal static ITranslator GetReadTranslator(Stream stream, BinaryReaderFactory buffer) 49internal static ITranslator GetWriteTranslator(Stream stream)
BuildException\BuildExceptionBase.cs (2)
73internal static void WriteExceptionToTranslator(ITranslator translator, Exception exception) 116internal static Exception ReadExceptionFromTranslator(ITranslator translator)
ITranslatable.cs (1)
16void Translate(ITranslator translator);
ITranslator.cs (2)
19internal delegate T NodePacketValueFactory<T>(ITranslator translator); 26internal delegate void ObjectTranslator<T>(ITranslator translator, ref T objectToTranslate);
Microsoft.Build.Tasks.Core (48)
AssemblyNameExtension.cs (3)
176internal AssemblyNameExtension(ITranslator translator) : this() 980public void Translate(ITranslator translator) 990(ITranslator t) => new AssemblyNameExtension(t),
AssemblyRegistrationCache.cs (2)
58public AssemblyRegistrationCache(ITranslator translator) 65public override void Translate(ITranslator translator)
GetSDKReferenceFiles.cs (9)
934using var translator = BinaryTranslator.GetReadTranslator(fs, InterningBinaryReader.PoolingBuffer); 979var translator = BinaryTranslator.GetWriteTranslator(fs); 1230public SDKInfo(ITranslator translator) : this() 1254public void Translate(ITranslator translator) 1256translator.TranslateDictionary(ref _pathToReferenceMetadata, (ITranslator t, ref string s) => t.Translate(ref s), (ITranslator t, ref SdkReferenceInfo info) => 1273translator.TranslateDictionary(ref _directoryToFileList, (ITranslator t, ref string s) => t.Translate(ref s), (ITranslator t, ref List<string> fileList) => 1275t.Translate(ref fileList, (ITranslator t, ref string str) => { t.Translate(ref str); });
ResGenDependencies.cs (8)
96public ResGenDependencies(ITranslator translator) 101public override void Translate(ITranslator translator) 104(ITranslator translator, ref string s) => translator.Translate(ref s), 105(ITranslator translator, ref ResXFile resx) => 113(ITranslator translator, ref string s) => translator.Translate(ref s), 114(ITranslator translator, ref PortableLibraryFile portableLibrary) => 242public void Translate(ITranslator translator) 335public void Translate(ITranslator translator)
ResolveComReferenceCache.cs (2)
92public ResolveComReferenceCache(ITranslator translator) 97public override void Translate(ITranslator translator)
StateFileBase.cs (4)
54var translator = BinaryTranslator.GetWriteTranslator(s); 71public abstract void Translate(ITranslator translator); 87using var translator = BinaryTranslator.GetReadTranslator(s, InterningBinaryReader.PoolingBuffer); 103if (parameters.Length == 1 && parameters[0].ParameterType == typeof(ITranslator))
SystemState.cs (7)
161internal FileState(ITranslator translator) 169public void Translate(ITranslator translator) 175(ITranslator t) => new AssemblyNameExtension(t)); 177(ITranslator t) => new AssemblyNameExtension(t)); 240public SystemState(ITranslator translator) 261public override void Translate(ITranslator translator) 271(ITranslator t) => new FileState(t));
TaskTranslatorHelpers.cs (1)
14public static void Translate(this ITranslator translator, ref FrameworkName frameworkName)
TranslatorHelpers.cs (12)
30this ITranslator translator, 50void TranslateUsingValueFactory(ITranslator translator, ref T objectToTranslate) 59this ITranslator translator, 67this ITranslator translator, 76this ITranslator translator, 84this ITranslator translator, 93this ITranslator translator, 103this ITranslator translator, 114this ITranslator translator, 152public static void Translate(this ITranslator translator, ref CultureInfo cultureInfo) 174public static void Translate(this ITranslator translator, ref Version version) 216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
Microsoft.Build.Tasks.UnitTests (10)
AssemblyDependency\TaskTranslatorHelpers.cs (2)
54private ITranslator GetReadTranslator() 65private ITranslator GetWriteTranslator()
AssemblyNameEx_Tests.cs (8)
686ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 688writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 691ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 693readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t)); 710ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(serializationStream); 712writeTranslator.Translate(ref assemblyNameOriginal, (ITranslator t) => new AssemblyNameExtension(t)); 715ITranslator readTranslator = BinaryTranslator.GetReadTranslator(serializationStream, InterningBinaryReader.PoolingBuffer); 717readTranslator.Translate(ref assemblyNameDeserialized, (ITranslator t) => new AssemblyNameExtension(t));
MSBuild (67)
AssemblyLoadInfo.cs (2)
100public void Translate(ITranslator translator) 109public static AssemblyLoadInfo FactoryForTranslation(ITranslator translator)
AssemblyNameExtension.cs (3)
176internal AssemblyNameExtension(ITranslator translator) : this() 980public void Translate(ITranslator translator) 990(ITranslator t) => new AssemblyNameExtension(t),
INodePacketFactory.cs (2)
13internal delegate INodePacket NodePacketFactoryMethod(ITranslator translator); 43void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator);
LogMessagePacket.cs (2)
36private LogMessagePacket(ITranslator translator) 45internal static INodePacket FactoryForDeserialization(ITranslator translator)
LogMessagePacketBase.cs (17)
337protected LogMessagePacketBase(ITranslator translator, TargetFinishedTranslator targetFinishedTranslator = null) 350internal delegate void TargetFinishedTranslator(ITranslator translator, TargetFinishedEventArgs finishedEvent); 403public void Translate(ITranslator translator) 422internal void WriteToStream(ITranslator translator) 489internal void ReadFromStream(ITranslator translator) 859private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 911private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 938private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 965private void WriteTaskCommandLineEventToStream(TaskCommandLineEventArgs taskCommandLineEventArgs, ITranslator translator) 980private void WriteBuildMessageEventToStream(BuildMessageEventArgs buildMessageEventArgs, ITranslator translator) 989private void WriteResponseFileUsedEventToStream(ResponseFileUsedEventArgs responseFileUsedEventArgs, ITranslator translator) 1210private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator) 1245private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1287private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1329private TaskCommandLineEventArgs ReadTaskCommandLineEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1347private BuildMessageEventArgs ReadBuildMessageEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1357private ResponseFileUsedEventArgs ReadResponseFileUsedEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName)
NodeBuildComplete.cs (2)
66public void Translate(ITranslator translator) 74internal static NodeBuildComplete FactoryForDeserialization(ITranslator translator)
NodeEndpointOutOfProcBase.cs (1)
632ITranslator writeTranslator = BinaryTranslator.GetWriteTranslator(packetStream);
NodePacketFactory.cs (2)
50public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 99public void DeserializeAndRoutePacket(int nodeId, ITranslator translator)
NodeShutdown.cs (2)
105public void Translate(ITranslator translator) 114internal static NodeShutdown FactoryForDeserialization(ITranslator translator)
OutOfProcTaskHostNode.cs (1)
590public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
TaskHostConfiguration.cs (5)
412public void Translate(ITranslator translator) 446objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 453objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 460objectTranslator: (ITranslator t, ref string s) => t.Translate(ref s), 471internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskHostTaskCancelled.cs (2)
33public void Translate(ITranslator translator) 41internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskHostTaskComplete.cs (3)
238public void Translate(ITranslator translator) 248(ITranslator translator, ref FileAccessData data) => ((ITranslatable)data).Translate(translator)); 258internal static INodePacket FactoryForDeserialization(ITranslator translator)
TaskParameter.cs (11)
225public void Translate(ITranslator translator) 279internal static TaskParameter FactoryForDeserialization(ITranslator translator) 340private void TranslateITaskItemArray(ITranslator translator) 377private void TranslateITaskItem(ITranslator translator) 394private void WriteITaskItem(ITranslator translator, ITaskItem wrappedItem) 461private void ReadITaskItem(ITranslator translator, ref ITaskItem wrappedItem) 485private bool TranslateNullable<T>(ITranslator translator, T value) 505private void TranslatePrimitiveType(ITranslator translator) 580private void TranslatePrimitiveTypeArray(ITranslator translator) 662private void TranslateValueType(ITranslator translator) 687private void TranslateValueTypeArray(ITranslator translator)
TranslatorHelpers.cs (12)
30this ITranslator translator, 50void TranslateUsingValueFactory(ITranslator translator, ref T objectToTranslate) 59this ITranslator translator, 67this ITranslator translator, 76this ITranslator translator, 84this ITranslator translator, 93this ITranslator translator, 103this ITranslator translator, 114this ITranslator translator, 152public static void Translate(this ITranslator translator, ref CultureInfo cultureInfo) 174public static void Translate(this ITranslator translator, ref Version version) 216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)