15 writes to IsValid
Microsoft.Build (14)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (2)
27
IsValid
= true;
46
IsValid
= false;
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
34
this.
IsValid
= true;
51
this.
IsValid
= false;
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
156
this.
IsValid
= true;
167
this.
IsValid
= false;
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
46
this.
IsValid
= true;
55
this.
IsValid
= true;
105
this.
IsValid
= false;
BackEnd\Components\Logging\TaskLoggingContext.cs (3)
77
this.
IsValid
= true;
86
this.
IsValid
= true;
135
this.
IsValid
= false;
BuildCheck\Logging\AnalyzerLoggingContext.cs (2)
15
IsValid
= true;
20
IsValid
= true;
Microsoft.Build.Engine.UnitTests (1)
MockLoggingContext.cs (1)
18
IsValid
= true;
24 references to IsValid
Microsoft.Build (20)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
62
ErrorUtilities.VerifyThrow(
IsValid
, "must be valid");
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
44
ErrorUtilities.VerifyThrow(
IsValid
, "invalid");
BackEnd\Components\Logging\LoggingContext.cs (3)
290
ErrorUtilities.VerifyThrow(
IsValid
, "must be valid");
301
ErrorUtilities.VerifyThrow(
IsValid
, "must be valid");
312
ErrorUtilities.VerifyThrow(
IsValid
, "must be valid");
BackEnd\Components\Logging\NodeLoggingContext.cs (3)
43
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
61
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
73
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
165
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
175
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
BackEnd\Components\Logging\TargetLoggingContext.cs (2)
94
ErrorUtilities.VerifyThrow(
IsValid
, "Should be valid");
113
ErrorUtilities.VerifyThrow(
IsValid
, "Should be valid");
BackEnd\Components\Logging\TaskLoggingContext.cs (2)
127
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
146
ErrorUtilities.VerifyThrow(
IsValid
, "must be valid");
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
844
if (LoggingContext.
IsValid
)
882
if (LoggingContext.
IsValid
)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
665
catch (InternalErrorException) when (!_taskLoggingContext.
IsValid
)
1586
catch (InternalErrorException) when (!_taskLoggingContext.
IsValid
)
Definition\ProjectProperty.cs (1)
101
if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is {
IsValid
: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Instance\ProjectPropertyInstance.cs (1)
92
if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.
IsValid
== true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingContext_Tests.cs (4)
35
context.
IsValid
.ShouldBeTrue();
38
context.
IsValid
.ShouldBeFalse();
44
context2.
IsValid
.ShouldBeTrue();
47
context2.
IsValid
.ShouldBeFalse();