我们如何通过Windows Phone将e.channel Uri传递给Web服务

时间:2014-03-24 13:14:14

标签: windows-phone-7 windows-phone-8 windows-phone-7.1

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服务?

0 个答案:

没有答案