コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiscoveryTopicBuilder"/> class.
 /// </summary>
 /// <param name="componentType">The type of component being built</param>
 /// <param name="discoveryPrefix">(Optional) The prefix for the discovery topic. Default value: homeassistant</param>
 public DiscoveryTopicBuilder(ComponentType componentType, string discoveryPrefix = "homeassistant")
 {
     IdentifierValidator.ValidateDiscoveryPrefix(discoveryPrefix);
     ComponentType   = componentType;
     DiscoveryPrefix = discoveryPrefix;
 }