Example #1
0
 private void UpdateCommentByID(string statusID, string commentcontent)
 {
     CustomBinding binding = new CustomBinding(new BinaryMessageEncodingBindingElement(), new HttpTransportBindingElement());
     EndpointAddress address = new EndpointAddress(new Uri(Application.Current.Host.Source, "/SinaDesktop.Web/SinaService.svc"));
     SinaDataService.DataServiceClient svc = new SinaDataService.DataServiceClient(binding, address);
     svc.UpdateCommentByIDCompleted += client_UpdateCommentByIDCompleted;
     svc.UpdateCommentByIDAsync(statusID, "xml",commentcontent, ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
 }
        private void UpdateCommentByID(string statusID, string commentcontent)
        {
            CustomBinding   binding = new CustomBinding(new BinaryMessageEncodingBindingElement(), new HttpTransportBindingElement());
            EndpointAddress address = new EndpointAddress(new Uri(Application.Current.Host.Source, "/SinaDesktop.Web/SinaService.svc"));

            SinaDataService.DataServiceClient svc = new SinaDataService.DataServiceClient(binding, address);
            svc.UpdateCommentByIDCompleted += client_UpdateCommentByIDCompleted;
            svc.UpdateCommentByIDAsync(statusID, "xml", commentcontent, ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
        }