120 references to TranslationDirection
Microsoft.Build (71)
AssemblyLoadInfo.cs (1)
102
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "write only");
BackEnd\Components\Caching\ConfigCache.cs (1)
367
if (translator.Mode ==
TranslationDirection
.WriteToStream)
BackEnd\Components\Caching\ResultsCache.cs (1)
254
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
BackEnd\Components\Communications\LogMessagePacket.cs (2)
52
if (translator.Mode ==
TranslationDirection
.WriteToStream)
66
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
BackEnd\Components\Communications\TranslatorExtensions.cs (2)
37
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
103
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
BackEnd\Components\SdkResolution\TranslationHelpers.cs (4)
20
if (t.Mode ==
TranslationDirection
.WriteToStream)
31
if (t.Mode ==
TranslationDirection
.ReadFromStream)
42
if (t.Mode ==
TranslationDirection
.WriteToStream)
51
if (t.Mode ==
TranslationDirection
.ReadFromStream)
BackEnd\Shared\BuildRequestConfiguration.cs (6)
707
using ITranslator translator = GetConfigurationTranslator(
TranslationDirection
.WriteToStream, stream);
746
using ITranslator translator = GetConfigurationTranslator(
TranslationDirection
.ReadFromStream, stream);
917
if (translator.Mode ==
TranslationDirection
.WriteToStream && _transferredProperties == null)
935
if (translator.Mode ==
TranslationDirection
.ReadFromStream && _transferredState?.TranslateEntireState == true)
1069
private ITranslator GetConfigurationTranslator(
TranslationDirection
direction, Stream stream) =>
1070
direction ==
TranslationDirection
.WriteToStream
BackEnd\Shared\BuildResult.cs (2)
649
if (translator.Mode ==
TranslationDirection
.WriteToStream)
660
else if (translator.Mode ==
TranslationDirection
.ReadFromStream)
BackEnd\Shared\TargetResult.cs (6)
184
if (translator.Mode ==
TranslationDirection
.WriteToStream)
255
using ITranslator translator = GetResultsCacheTranslator(
TranslationDirection
.WriteToStream, stream);
292
using ITranslator translator = GetResultsCacheTranslator(
TranslationDirection
.ReadFromStream, stream);
305
if (translator.Mode ==
TranslationDirection
.WriteToStream)
352
private static ITranslator GetResultsCacheTranslator(
TranslationDirection
direction, Stream stream) =>
353
direction ==
TranslationDirection
.WriteToStream
ElementLocation\ElementLocation.cs (1)
143
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "write only");
Instance\HostServices.cs (2)
309
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
335
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectInstance.cs (4)
2363
if (translator.Mode ==
TranslationDirection
.WriteToStream)
2451
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
2487
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
2778
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectItemGroupTaskInstance.cs (1)
128
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectItemInstance.cs (1)
1759
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectMetadataInstance.cs (1)
178
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "write only");
Instance\ProjectOnErrorInstance.cs (1)
117
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectPropertyGroupTaskInstance.cs (1)
127
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectPropertyInstance.cs (2)
174
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "write only");
273
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.ReadFromStream, "read only");
Instance\ProjectTargetInstance.cs (1)
578
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
Instance\ProjectTaskInstance.cs (3)
360
if (translator.Mode ==
TranslationDirection
.WriteToStream)
385
if (translator.Mode ==
TranslationDirection
.ReadFromStream && localParameters != null)
398
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectTaskOutputItemInstance.cs (1)
138
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\ProjectTaskOutputPropertyInstance.cs (1)
138
if (translator.Mode ==
TranslationDirection
.WriteToStream)
Instance\TaskRegistry.cs (4)
1057
if (translator.Mode ==
TranslationDirection
.ReadFromStream && taskIdentityParameters != null)
1787
var writing = translator.Mode ==
TranslationDirection
.WriteToStream;
1822
if (translator.Mode ==
TranslationDirection
.ReadFromStream && localParameters != null)
1844
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
LogMessagePacketBase.cs (1)
407
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
TaskParameter.cs (11)
347
if (translator.Mode ==
TranslationDirection
.WriteToStream)
379
if (translator.Mode ==
TranslationDirection
.WriteToStream)
396
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "Cannot call this method when reading!");
463
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.ReadFromStream, "Cannot call this method when writing!");
489
if (translator.Mode ==
TranslationDirection
.WriteToStream)
562
if (translator.Mode ==
TranslationDirection
.WriteToStream)
569
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
606
if (translator.Mode ==
TranslationDirection
.WriteToStream)
665
if (translator.Mode ==
TranslationDirection
.WriteToStream)
672
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
689
if (translator.Mode ==
TranslationDirection
.WriteToStream)
TranslatorHelpers.cs (10)
38
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
125
if (translator.Mode ==
TranslationDirection
.WriteToStream)
131
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
142
if (translator.Mode ==
TranslationDirection
.WriteToStream)
161
if (translator.Mode ==
TranslationDirection
.WriteToStream)
168
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
186
if (translator.Mode ==
TranslationDirection
.WriteToStream)
199
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
235
if (translator.Mode ==
TranslationDirection
.WriteToStream)
262
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
Microsoft.Build.Engine.UnitTests (6)
BackEnd\BinaryTranslator_Tests.cs (6)
41
Assert.Equal(
TranslationDirection
.ReadFromStream, readTranslator.Mode);
44
Assert.Equal(
TranslationDirection
.WriteToStream, writeTranslator.Mode);
175
TranslationDirection
value =
TranslationDirection
.ReadFromStream;
178
TranslationDirection
deserializedValue =
TranslationDirection
.WriteToStream;
Microsoft.Build.Framework (5)
BinaryTranslator.cs (4)
111
public
TranslationDirection
Mode
115
{ return
TranslationDirection
.ReadFromStream; }
866
public
TranslationDirection
Mode
870
{ return
TranslationDirection
.WriteToStream; }
ITranslator.cs (1)
72
TranslationDirection
Mode
Microsoft.Build.Tasks.Core (13)
SystemState.cs (1)
269
ref (translator.Mode ==
TranslationDirection
.WriteToStream) ? ref instanceLocalOutgoingFileStateCache : ref instanceLocalFileStateCache,
TaskTranslatorHelpers.cs (2)
25
if (translator.Mode ==
TranslationDirection
.WriteToStream)
36
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
TranslatorHelpers.cs (10)
38
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
125
if (translator.Mode ==
TranslationDirection
.WriteToStream)
131
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
142
if (translator.Mode ==
TranslationDirection
.WriteToStream)
161
if (translator.Mode ==
TranslationDirection
.WriteToStream)
168
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
186
if (translator.Mode ==
TranslationDirection
.WriteToStream)
199
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
235
if (translator.Mode ==
TranslationDirection
.WriteToStream)
262
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
MSBuild (25)
AssemblyLoadInfo.cs (1)
102
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "write only");
LogMessagePacketBase.cs (1)
407
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
TaskHostConfiguration.cs (2)
423
if (translator.Mode ==
TranslationDirection
.WriteToStream)
430
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
TaskParameter.cs (11)
347
if (translator.Mode ==
TranslationDirection
.WriteToStream)
379
if (translator.Mode ==
TranslationDirection
.WriteToStream)
396
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.WriteToStream, "Cannot call this method when reading!");
463
ErrorUtilities.VerifyThrow(translator.Mode ==
TranslationDirection
.ReadFromStream, "Cannot call this method when writing!");
489
if (translator.Mode ==
TranslationDirection
.WriteToStream)
562
if (translator.Mode ==
TranslationDirection
.WriteToStream)
569
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
606
if (translator.Mode ==
TranslationDirection
.WriteToStream)
665
if (translator.Mode ==
TranslationDirection
.WriteToStream)
672
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
689
if (translator.Mode ==
TranslationDirection
.WriteToStream)
TranslatorHelpers.cs (10)
38
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
125
if (translator.Mode ==
TranslationDirection
.WriteToStream)
131
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
142
if (translator.Mode ==
TranslationDirection
.WriteToStream)
161
if (translator.Mode ==
TranslationDirection
.WriteToStream)
168
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
186
if (translator.Mode ==
TranslationDirection
.WriteToStream)
199
if (translator.Mode ==
TranslationDirection
.ReadFromStream)
235
if (translator.Mode ==
TranslationDirection
.WriteToStream)
262
if (translator.Mode ==
TranslationDirection
.ReadFromStream)