2 implementations of HasConfiguration
Microsoft.Build (2)
BackEnd\Components\Caching\ConfigCache.cs (1)
179
public bool
HasConfiguration
(int configId)
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
116
public bool
HasConfiguration
(int configId)
14 references to HasConfiguration
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2247
if (_configCache!.
HasConfiguration
(newConfigurationId) || (newConfigurationId == BuildRequestConfiguration.InvalidConfigurationId))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
334
ErrorUtilities.VerifyThrow(_configCache.
HasConfiguration
(request.ConfigurationId), "Request {0} refers to configuration {1} which is not known to the engine.", request.GlobalRequestId, request.ConfigurationId);
513
if (!globalConfigurations.
HasConfiguration
(response.GlobalConfigurationId))
1301
while (_unresolvedConfigurations.
HasConfiguration
(_nextUnresolvedConfigurationId));
1334
ErrorUtilities.VerifyThrow(_unresolvedConfigurations.
HasConfiguration
(config.ConfigurationId), "NoUnresolvedConfiguration");
BackEnd\Components\Caching\ConfigCacheWithOverride.cs (1)
133
return _override.
HasConfiguration
(configId);
BackEnd\Components\Logging\LoggingService.cs (1)
1348
ErrorUtilities.VerifyThrow(_configCache.Value.
HasConfiguration
(projectStartedEventArgs.ProjectId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
576
ErrorUtilities.VerifyThrow(_configCache.Value.
HasConfiguration
(configurationId), "Cannot find the project configuration while injecting non-serialized data from out-of-proc node.");
BackEnd\Components\Scheduler\Scheduler.cs (2)
1764
_configCache.
HasConfiguration
(request.ConfigurationId),
2038
configCache.
HasConfiguration
(parentRequest.BuildRequest.ConfigurationId),
Microsoft.Build.Engine.UnitTests (4)
BackEnd\CacheSerialization_Tests.cs (4)
106
Assert.True(result.ConfigCache.
HasConfiguration
(1));
107
Assert.False(result.ConfigCache.
HasConfiguration
(2));
108
Assert.False(result.ConfigCache.
HasConfiguration
(3));
138
Assert.True(result.ConfigCache.
HasConfiguration
(1));