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