Table of Contents

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

type string
name string
address IPAddress
port int
properties IReadOnlyDictionary<string, string>

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

IPAddress

Name

Gets the service instance name (e.g. "Living Room").

public string Name { get; }

Property Value

string

Port

Gets the service port.

public int Port { get; }

Property Value

int

Properties

Gets the TXT record properties, keyed case-insensitively.

public IReadOnlyDictionary<string, string> Properties { get; }

Property Value

IReadOnlyDictionary<string, string>

Type

Gets the service type (e.g. "_companion-link._tcp.local").

public string Type { get; }

Property Value

string