66 references to WriteToStream
Microsoft.Build (41)
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\Communications\LogMessagePacket.cs (1)
52
if (translator.Mode == TranslationDirection.
WriteToStream
)
BackEnd\Components\SdkResolution\TranslationHelpers.cs (2)
20
if (t.Mode == TranslationDirection.
WriteToStream
)
42
if (t.Mode == TranslationDirection.
WriteToStream
)
BackEnd\Shared\BuildRequestConfiguration.cs (3)
707
using ITranslator translator = GetConfigurationTranslator(TranslationDirection.
WriteToStream
, stream);
917
if (translator.Mode == TranslationDirection.
WriteToStream
&& _transferredProperties == null)
1070
direction == TranslationDirection.
WriteToStream
BackEnd\Shared\BuildResult.cs (1)
649
if (translator.Mode == TranslationDirection.
WriteToStream
)
BackEnd\Shared\TargetResult.cs (4)
184
if (translator.Mode == TranslationDirection.
WriteToStream
)
255
using ITranslator translator = GetResultsCacheTranslator(TranslationDirection.
WriteToStream
, stream);
305
if (translator.Mode == TranslationDirection.
WriteToStream
)
353
direction == TranslationDirection.
WriteToStream
ElementLocation\ElementLocation.cs (1)
143
ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.
WriteToStream
, "write only");
Instance\HostServices.cs (1)
335
if (translator.Mode == TranslationDirection.
WriteToStream
)
Instance\ProjectInstance.cs (2)
2363
if (translator.Mode == TranslationDirection.
WriteToStream
)
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 (1)
174
ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.
WriteToStream
, "write only");
Instance\ProjectTaskInstance.cs (2)
360
if (translator.Mode == TranslationDirection.
WriteToStream
)
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 (1)
1787
var writing = translator.Mode == TranslationDirection.
WriteToStream
;
TaskParameter.cs (8)
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!");
489
if (translator.Mode == TranslationDirection.
WriteToStream
)
562
if (translator.Mode == TranslationDirection.
WriteToStream
)
606
if (translator.Mode == TranslationDirection.
WriteToStream
)
665
if (translator.Mode == TranslationDirection.
WriteToStream
)
689
if (translator.Mode == TranslationDirection.
WriteToStream
)
TranslatorHelpers.cs (5)
125
if (translator.Mode == TranslationDirection.
WriteToStream
)
142
if (translator.Mode == TranslationDirection.
WriteToStream
)
161
if (translator.Mode == TranslationDirection.
WriteToStream
)
186
if (translator.Mode == TranslationDirection.
WriteToStream
)
235
if (translator.Mode == TranslationDirection.
WriteToStream
)
Microsoft.Build.Engine.UnitTests (2)
BackEnd\BinaryTranslator_Tests.cs (2)
44
Assert.Equal(TranslationDirection.
WriteToStream
, writeTranslator.Mode);
178
TranslationDirection deserializedValue = TranslationDirection.
WriteToStream
;
Microsoft.Build.Framework (1)
BinaryTranslator.cs (1)
870
{ return TranslationDirection.
WriteToStream
; }
Microsoft.Build.Tasks.Core (7)
SystemState.cs (1)
269
ref (translator.Mode == TranslationDirection.
WriteToStream
) ? ref instanceLocalOutgoingFileStateCache : ref instanceLocalFileStateCache,
TaskTranslatorHelpers.cs (1)
25
if (translator.Mode == TranslationDirection.
WriteToStream
)
TranslatorHelpers.cs (5)
125
if (translator.Mode == TranslationDirection.
WriteToStream
)
142
if (translator.Mode == TranslationDirection.
WriteToStream
)
161
if (translator.Mode == TranslationDirection.
WriteToStream
)
186
if (translator.Mode == TranslationDirection.
WriteToStream
)
235
if (translator.Mode == TranslationDirection.
WriteToStream
)
MSBuild (15)
AssemblyLoadInfo.cs (1)
102
ErrorUtilities.VerifyThrow(translator.Mode == TranslationDirection.
WriteToStream
, "write only");
TaskHostConfiguration.cs (1)
423
if (translator.Mode == TranslationDirection.
WriteToStream
)
TaskParameter.cs (8)
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!");
489
if (translator.Mode == TranslationDirection.
WriteToStream
)
562
if (translator.Mode == TranslationDirection.
WriteToStream
)
606
if (translator.Mode == TranslationDirection.
WriteToStream
)
665
if (translator.Mode == TranslationDirection.
WriteToStream
)
689
if (translator.Mode == TranslationDirection.
WriteToStream
)
TranslatorHelpers.cs (5)
125
if (translator.Mode == TranslationDirection.
WriteToStream
)
142
if (translator.Mode == TranslationDirection.
WriteToStream
)
161
if (translator.Mode == TranslationDirection.
WriteToStream
)
186
if (translator.Mode == TranslationDirection.
WriteToStream
)
235
if (translator.Mode == TranslationDirection.
WriteToStream
)