TFS Filtered Registry Path Exists Discovery Data Source
TeamFoundationServer2017.TfsFilteredRegistryPathExistsDiscoveryDataSource (DataSourceModuleType)
Registry based filter used to locate Candidates, checks to see if they have a specific path in the Registry
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<DataSourceModuleType ID="TeamFoundationServer2017.TfsFilteredRegistryPathExistsDiscoveryDataSource" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="Component" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="ClassId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="ComputerName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="TfsFilteredRegistryPathExistsDisoveryProvider" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Config/ComputerName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>PathExists</AttributeName>
<Path>Software\Microsoft\TeamFoundationServer\15.0\$Config/Component$</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>$Config/IntervalSeconds$</Frequency>
<ClassId>$Config/ClassId$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="TeamFoundationServer2017.TfsCandidateBase"]/Component$</Name>
<Value>$Config/Component$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Config/ComputerName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Config/ComputerName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/PathExists</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</MemberModules>
<Composition>
<Node ID="TfsFilteredRegistryPathExistsDisoveryProvider"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>