66 references to WriteToStream
Microsoft.Build (41)
AssemblyLoadInfo.cs (1)
102ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
BackEnd\Components\Caching\ConfigCache.cs (1)
367if (translator.Mode == TranslationDirection.WriteToStream)
BackEnd\Components\Communications\LogMessagePacket.cs (1)
52if (translator.Mode == TranslationDirection.WriteToStream)
BackEnd\Components\SdkResolution\TranslationHelpers.cs (2)
20if (t.Mode == TranslationDirection.WriteToStream) 42if (t.Mode == TranslationDirection.WriteToStream)
BackEnd\Shared\BuildRequestConfiguration.cs (3)
707using ITranslator translator = GetConfigurationTranslator(TranslationDirection.WriteToStream, stream); 917if (translator.Mode == TranslationDirection.WriteToStream && _transferredProperties == null) 1070direction == TranslationDirection.WriteToStream
BackEnd\Shared\BuildResult.cs (1)
649if (translator.Mode == TranslationDirection.WriteToStream)
BackEnd\Shared\TargetResult.cs (4)
184if (translator.Mode == TranslationDirection.WriteToStream) 255using ITranslator translator = GetResultsCacheTranslator(TranslationDirection.WriteToStream, stream); 305if (translator.Mode == TranslationDirection.WriteToStream) 353direction == TranslationDirection.WriteToStream
ElementLocation\ElementLocation.cs (1)
143ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
Instance\HostServices.cs (1)
335if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectInstance.cs (2)
2363if (translator.Mode == TranslationDirection.WriteToStream) 2778if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectItemGroupTaskInstance.cs (1)
128if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectItemInstance.cs (1)
1759if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectMetadataInstance.cs (1)
178ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
Instance\ProjectOnErrorInstance.cs (1)
117if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectPropertyGroupTaskInstance.cs (1)
127if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectPropertyInstance.cs (1)
174ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
Instance\ProjectTaskInstance.cs (2)
360if (translator.Mode == TranslationDirection.WriteToStream) 398if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectTaskOutputItemInstance.cs (1)
138if (translator.Mode == TranslationDirection.WriteToStream)
Instance\ProjectTaskOutputPropertyInstance.cs (1)
138if (translator.Mode == TranslationDirection.WriteToStream)
Instance\TaskRegistry.cs (1)
1787var writing = translator.Mode == TranslationDirection.WriteToStream;
TaskParameter.cs (8)
347if (translator.Mode == TranslationDirection.WriteToStream) 379if (translator.Mode == TranslationDirection.WriteToStream) 396ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "Cannot call this method when reading!"); 489if (translator.Mode == TranslationDirection.WriteToStream) 562if (translator.Mode == TranslationDirection.WriteToStream) 606if (translator.Mode == TranslationDirection.WriteToStream) 665if (translator.Mode == TranslationDirection.WriteToStream) 689if (translator.Mode == TranslationDirection.WriteToStream)
TranslatorHelpers.cs (5)
125if (translator.Mode == TranslationDirection.WriteToStream) 142if (translator.Mode == TranslationDirection.WriteToStream) 161if (translator.Mode == TranslationDirection.WriteToStream) 186if (translator.Mode == TranslationDirection.WriteToStream) 235if (translator.Mode == TranslationDirection.WriteToStream)
Microsoft.Build.Engine.UnitTests (2)
BackEnd\BinaryTranslator_Tests.cs (2)
44Assert.Equal(TranslationDirection.WriteToStream, writeTranslator.Mode); 178TranslationDirection deserializedValue = TranslationDirection.WriteToStream;
Microsoft.Build.Framework (1)
BinaryTranslator.cs (1)
870{ return TranslationDirection.WriteToStream; }
Microsoft.Build.Tasks.Core (7)
SystemState.cs (1)
269ref (translator.Mode == TranslationDirection.WriteToStream) ? ref instanceLocalOutgoingFileStateCache : ref instanceLocalFileStateCache,
TaskTranslatorHelpers.cs (1)
25if (translator.Mode == TranslationDirection.WriteToStream)
TranslatorHelpers.cs (5)
125if (translator.Mode == TranslationDirection.WriteToStream) 142if (translator.Mode == TranslationDirection.WriteToStream) 161if (translator.Mode == TranslationDirection.WriteToStream) 186if (translator.Mode == TranslationDirection.WriteToStream) 235if (translator.Mode == TranslationDirection.WriteToStream)
MSBuild (15)
AssemblyLoadInfo.cs (1)
102ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "write only");
TaskHostConfiguration.cs (1)
423if (translator.Mode == TranslationDirection.WriteToStream)
TaskParameter.cs (8)
347if (translator.Mode == TranslationDirection.WriteToStream) 379if (translator.Mode == TranslationDirection.WriteToStream) 396ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.WriteToStream, "Cannot call this method when reading!"); 489if (translator.Mode == TranslationDirection.WriteToStream) 562if (translator.Mode == TranslationDirection.WriteToStream) 606if (translator.Mode == TranslationDirection.WriteToStream) 665if (translator.Mode == TranslationDirection.WriteToStream) 689if (translator.Mode == TranslationDirection.WriteToStream)
TranslatorHelpers.cs (5)
125if (translator.Mode == TranslationDirection.WriteToStream) 142if (translator.Mode == TranslationDirection.WriteToStream) 161if (translator.Mode == TranslationDirection.WriteToStream) 186if (translator.Mode == TranslationDirection.WriteToStream) 235if (translator.Mode == TranslationDirection.WriteToStream)