2using System.Collections.Generic;
3using System.Threading.Tasks;
14 private readonly XmlElement xml;
15 private readonly
string serviceType;
16 private readonly
string serviceId;
17 private readonly
string scpdURL;
18 private readonly
string controlURL;
19 private readonly
string eventSubURL;
20 private readonly Uri scpdURI;
21 private readonly Uri controlURI;
22 private readonly Uri eventSubURI;
37 this.scpdURL = ScpdUrl;
38 this.scpdURI =
new Uri(ScpdUrl);
39 this.controlURL =
null;
40 this.controlURI =
null;
41 this.eventSubURL =
null;
42 this.eventSubURI =
null;
56 foreach (XmlNode N
in Xml.ChildNodes)
61 this.serviceType = N.InnerText;
65 this.serviceId = N.InnerText;
69 this.scpdURL = N.InnerText;
70 this.scpdURI =
new Uri(BaseUri, this.scpdURL);
74 this.controlURL = N.InnerText;
75 this.controlURI =
new Uri(BaseUri, this.controlURL);
79 this.eventSubURL = N.InnerText;
80 this.eventSubURI =
new Uri(BaseUri, this.eventSubURL);
89 public XmlElement
Xml => this.xml;
134 return this.serviceType;
146 return this.client.GetService(
this);
159 return this.client.GetService(
this, Timeout);
168 return this.client.GetServiceAsync(
this);
178 return this.client.GetServiceAsync(
this, Timeout);
Contains the information provided in a Service Description Document, downloaded from a service in the...
Implements support for the UPnP protocol, as described in: http://upnp.org/specs/arch/UPnP-arch-Devic...
Contains information about a service.
string ServiceId
Service ID
ServiceDescriptionDocument GetService()
Gets the service description document from a service in the network. This method is the synchronous v...
string ServiceType
Service Type
string ControlURL
URL for control
XmlElement Xml
Underlying XML definition.
UPnPService(XmlElement Xml, Uri BaseUri, UPnPClient Client)
Contains information about a service.
override string ToString()
string EventSubURL
URL for eventing
Uri SCPDURI
URI to service description
Uri ControlURI
URI for control
Uri EventSubURI
URI for eventing
string SCPDURL
URL to service description
ServiceDescriptionDocument GetService(int Timeout)
Gets the service description document from a service in the network. This method is the synchronous v...
UPnPService(UPnPClient Client, string ServiceType, string ServiceId, string ScpdUrl)
Contains information about a service.
Task< ServiceDescriptionDocument > GetServiceAsync()
Starts the retrieval of a Service Description Document.
Task< ServiceDescriptionDocument > GetServiceAsync(int Timeout)
Starts the retrieval of a Service Description Document.