Example #1
0
        private void GetFollower(string statusid, int count)
        {
            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.GetFollowerCompleted += client_GetFollowerCompleted;
            svc.GetFollowerAsync(statusid, count, "xml", ConfigurationSettings.TokenKey, ConfigurationSettings.TokenKeySecret);
        }