public void GetRoster(RosterCallback rcb, ErrorCallback ecb) { var o = new List <Contact>(); Send( "/roster", ReceiveMode.Lines, sw => sw.Write("token=" + HttpUtility.UrlEncode(token)), line => ParseContact(line, false, o.Add, ecb), null, ecb, () => rcb(o) ); }
public void GetRoster(RosterCallback rcb, ErrorCallback ecb) { var o = new List<Contact>(); Send( "/roster", ReceiveMode.Lines, sw => sw.Write("token=" + HttpUtility.UrlEncode(token)), line => ParseContact(line, o.Add, ecb), null, ecb, () => rcb(o) ); }