Example #1
0
        private void StatusDeleteByID(string statusid)
        {
            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.Status_DeleteCompleted += client_StatusDeleteByIDCompleted;
            svc.Status_DeleteAsync(statusid, "xml", ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
        }
Example #2
0
 private void StatusDeleteByID(string statusid)
 {
     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.Status_DeleteCompleted += client_StatusDeleteByIDCompleted;
     svc.Status_DeleteAsync(statusid, "xml", ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
 }