Пример #1
0
		/// <summary>
		/// Starts the retrieval of a Service Description Document.
		/// </summary>
		/// <param name="Service">Service object.</param>
		/// <param name="Callback">Callback method. Will be called when the document has been downloaded, or an error has occurred.</param>
		/// <param name="State">State object propagated to the callback method.</param>
		public void StartGetService(UPnPService Service, ServiceDescriptionEventHandler Callback, object State)
		{
			WebClient Client = new WebClient();
			Client.DownloadDataCompleted += new DownloadDataCompletedEventHandler(DownloadServiceCompleted);
			Client.DownloadDataAsync(Service.SCPDURI, new object[] { Service, Callback, State });
		}
Пример #2
0
		/// <summary>
		/// Starts the retrieval of a Service Description Document.
		/// </summary>
		/// <param name="Callback">Callback method. Will be called when the document has been downloaded, or an error has occurred.</param>
		/// <param name="State">State object propagated to the callback method.</param>
		public void StartGetService(ServiceDescriptionEventHandler Callback, object State)
		{
			this.client.StartGetService(this, Callback, State);
		}
Пример #3
0
 /// <summary>
 /// Starts the retrieval of a Service Description Document.
 /// </summary>
 /// <param name="Callback">Callback method. Will be called when the document has been downloaded, or an error has occurred.</param>
 /// <param name="State">State object propagated to the callback method.</param>
 public void StartGetService(ServiceDescriptionEventHandler Callback, object State)
 {
     this.client.StartGetService(this, Callback, State);
 }