public void withDrawConnection(ref GlobusHttpHelper HttpHelper,Dictionary<string, string> SlectedContacts, string UserName)
        {
            try
            {
                string csrfToken = string.Empty;
                string sourceAlias = string.Empty;

                string referer = "https://www.linkedin.com/people/invites?trk=connect_hub_manage_invitations_sent";
                string actionUrl = "https://www.linkedin.com/people/invites/withdraw?isInvite=true";
                string postData = string.Empty;

                string url="https://www.linkedin.com/people/invites?trk=connect_hub_manage_invitations_sent";
                string src = HttpHelper.getHtmlfromUrl(new Uri( url));
                if (src.Contains("csrfToken="))
                {
                    try
                    {
                        csrfToken = Utils.getBetween(src, "csrfToken=", "\"");
                        if (csrfToken.Contains("%3A"))
                        {
                            csrfToken = csrfToken.Replace("%3A", ":");
                        }
                    }
                    catch
                    { }
                }
                if (src.Contains("sourceAlias"))
                {
                    try
                    {
                        sourceAlias = Utils.getBetween(src, "sourceAlias", "}");
                        sourceAlias = Utils.getBetween(sourceAlias, "value\":\"", "\"");
                        if (sourceAlias.Contains("\\u002d"))
                        {
                            sourceAlias = sourceAlias.Replace("\u002d", "-");
                        }
                    }
                    catch
                    { }
                }

                foreach (KeyValuePair<string, string> item in SlectedContacts)
                {
                    string invitationId = item.Value.Split(':')[1];
                    postData = "csrfToken=" + csrfToken + "&sourceAlias=" + sourceAlias + "&Ids=" + invitationId;
                    string responce = HttpHelper.postDataFormessagePosting(new Uri( actionUrl), postData, referer);
                    if (responce.Contains("status\":\"ok\""))
                    {
                        //AddLoggerManageConnection("");

                    }


                }




            }
            catch
            { }

        }