void PushChannel_ChannelUriUpdated(object sender, NotificationChannelUriEventArgs e)
{
Dispatcher.BeginInvoke(() =>
{
// Display the new URI for testing purposes. Normally, the URI would be passed back to your web service at this point.
System.Diagnostics.Debug.WriteLine(e.ChannelUri.ToString());
//MessageBox.Show(String.Format("Channel Uri is {0}",
// e.ChannelUri.ToString()));
ServiceReference1.Service1Client objServiceClient = new ServiceReference1.Service1Client();
objServiceClient.InsertNotificationURLCompleted +=
new EventHandler<InsertNotificationURLCompletedEventArgs>(
});
}
在上面的代码中,ServiceReference1是我的Web服务,现在我想将e.channel uri发送到Web服务。如何将此uri传递给Web服务?