public static SSHttpClient getInstance() { if (clientEnd == null) { clientEnd = new SSHttpClient(); } return(clientEnd); }
private SSHttpThread() { _locker = new object(); sendingQueue = new Queue <SSHttpTask> (); Loop = true; httpClient = SSHttpClient.getInstance(); httpThread = new Thread(new ThreadStart(Run)); httpThread.Start(); }