Class Service
- Namespace
- AppleTvControlLibrary.Discovery.Mdns
- Assembly
- AppleTvControlLibrary.Discovery.dll
Represents an MDNS service.
public sealed class Service
- Inheritance
-
Service
- Inherited Members
Remarks
Initializes a new instance of the Service class.
Constructors
Service(string, string, IPAddress?, int, IReadOnlyDictionary<string, string>)
Represents an MDNS service.
public Service(string type, string name, IPAddress? address, int port, IReadOnlyDictionary<string, string> properties)
Parameters
Remarks
Initializes a new instance of the Service class.
Properties
Address
Gets the resolved, non-link-local address of the service, if any.
public IPAddress? Address { get; }
Property Value
Name
Gets the service instance name (e.g. "Living Room").
public string Name { get; }
Property Value
Port
Gets the service port.
public int Port { get; }
Property Value
Properties
Gets the TXT record properties, keyed case-insensitively.
public IReadOnlyDictionary<string, string> Properties { get; }
Property Value
Type
Gets the service type (e.g. "_companion-link._tcp.local").
public string Type { get; }