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)
110this.IsValid = true; 149this.IsValid = true; 265this.IsValid = false;
BackEnd\Components\Logging\TargetLoggingContext.cs (3)
45this.IsValid = true; 65this.IsValid = true; 115this.IsValid = false;
BackEnd\Components\Logging\TaskLoggingContext.cs (3)
43this.IsValid = true; 90this.IsValid = true; 139this.IsValid = false;
Instance\ProjectInstance.cs (1)
3459: base(loggingService, eventContext) => IsValid = true;
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
18IsValid = true;
TestLoggingContext.cs (1)
19IsValid = 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)
263ErrorUtilities.VerifyThrow(this.IsValid, "invalid"); 273ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
131ErrorUtilities.VerifyThrow(this.IsValid, "invalid");
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
844if (LoggingContext.IsValid) 882if (LoggingContext.IsValid)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
665catch (InternalErrorException) when (!_taskLoggingContext.IsValid) 1626catch (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)
35context.IsValid.ShouldBeTrue(); 38context.IsValid.ShouldBeFalse(); 44context2.IsValid.ShouldBeTrue(); 47context2.IsValid.ShouldBeFalse();