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)
109
this.
IsValid
= true;
148
this.
IsValid
= true;
264
this.
IsValid
= false;
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
44
this.
IsValid
= true;
64
this.
IsValid
= true;
114
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)
3465
: base(loggingService, eventContext) =>
IsValid
= true;
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
18
IsValid
= true;
TestLoggingContext.cs (1)
14
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)
262
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
272
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131
ErrorUtilities.VerifyThrow(this.
IsValid
, "invalid");
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
845
if (LoggingContext.
IsValid
)
883
if (LoggingContext.
IsValid
)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
669
catch (InternalErrorException) when (!_taskLoggingContext.
IsValid
)
1641
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)
34
context.
IsValid
.ShouldBeTrue();
37
context.
IsValid
.ShouldBeFalse();
43
context2.
IsValid
.ShouldBeTrue();
46
context2.
IsValid
.ShouldBeFalse();