16 writes to IsValid
Microsoft.Build (14)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (2)
28IsValid = true; 49IsValid = false;
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
34this.IsValid = true; 51this.IsValid = false;
BackEnd\Components\Logging\ProjectLoggingContext.cs (3)
109this.IsValid = true; 148this.IsValid = true; 264this.IsValid = false;
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
44this.IsValid = true; 64this.IsValid = true; 114this.IsValid = false;
BackEnd\Components\Logging\TaskLoggingContext.cs (3)
43this.IsValid = true; 90this.IsValid = true; 139this.IsValid = false;
Instance\ProjectInstance.cs (1)
3465: base(loggingService, eventContext) => IsValid = true;
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
18IsValid = true;
TestLoggingContext.cs (1)
14IsValid = true;
19 references to IsValid
Microsoft.Build (15)
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
47ErrorUtilities.VerifyThrow(IsValid, "invalid");
BackEnd\Components\Logging\NodeLoggingContext.cs (3)
43ErrorUtilities.VerifyThrow(this.IsValid, "Build not started."); 68ErrorUtilities.VerifyThrow(this.IsValid, "Build not started."); 80ErrorUtilities.VerifyThrow(this.IsValid, "Build not started.");
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
262ErrorUtilities.VerifyThrow(this.IsValid, "invalid"); 272ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
845if (LoggingContext.IsValid) 883if (LoggingContext.IsValid)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
669catch (InternalErrorException) when (!_taskLoggingContext.IsValid) 1641catch (InternalErrorException) when (!_taskLoggingContext.IsValid)
Definition\ProjectProperty.cs (2)
106if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is { IsValid: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables) 125if (this is EnvironmentDerivedProjectProperty environmentProperty && environmentProperty.loggingContext is { IsValid: true } loggingContext && !environmentProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Instance\ProjectPropertyInstance.cs (2)
102if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.IsValid == true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables) 116if (this is EnvironmentDerivedProjectPropertyInstance envProperty && envProperty.loggingContext?.IsValid == true && !envProperty._loggedEnvProperty && !Traits.LogAllEnvironmentVariables)
Microsoft.Build.Engine.UnitTests (4)
BackEnd\LoggingContext_Tests.cs (4)
34context.IsValid.ShouldBeTrue(); 37context.IsValid.ShouldBeFalse(); 43context2.IsValid.ShouldBeTrue(); 46context2.IsValid.ShouldBeFalse();