private void RepostStatus(string statusid, string commentcontent, int isComment)
 {
     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.RepostStatusCompleted += client_RepostStatusCompleted;
     svc.RepostStatusAsync(statusid, commentcontent, isComment, "xml", ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
 }
        private void RepostStatus(string statusid, string commentcontent, int isComment)
        {
            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.RepostStatusCompleted += client_RepostStatusCompleted;
            svc.RepostStatusAsync(statusid, commentcontent, isComment, "xml", ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
        }