16 writes to IsValid
Microsoft.Build (14)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (2)
28
IsValid
= true;
49
IsValid
= false;
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
34
this.
IsValid
= true;
51
this.
IsValid
= false;
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
110
this.
IsValid
= true;
149
this.
IsValid
= true;
265
this.
IsValid
= false;
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
45
this.
IsValid
= true;
65
this.
IsValid
= true;
115
this.
IsValid
= false;
BackEnd\Components\Logging\TaskLoggingContext.cs (3)
43
this.
IsValid
= true;
90
this.
IsValid
= true;
139
this.
IsValid
= false;
Instance\ProjectInstance.cs (1)
3459
: base(loggingService, eventContext) =>
IsValid
= true;
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
18
IsValid
= true;
TestLoggingContext.cs (1)
19
IsValid
= true;
19 references to IsValid
Microsoft.Build (15)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
47
ErrorUtilities.VerifyThrow(
IsValid
, "invalid");
BackEnd\Components\Logging\NodeLoggingContext.cs (3)
43
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
68
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
80
ErrorUtilities.VerifyThrow(this.
IsValid
, "Build not started.");
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
263
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
273
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
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
)
1626
catch (InternalErrorException) when (!_taskLoggingContext.
IsValid
)
Definition\ProjectProperty.cs (2)
106
if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is {
IsValid
: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
125
if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is {
IsValid
: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Instance\ProjectPropertyInstance.cs (2)
102
if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.
IsValid
== true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
116
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();