예제 #1
0
 public static SSHttpClient getInstance()
 {
     if (clientEnd == null)
     {
         clientEnd = new SSHttpClient();
     }
     return(clientEnd);
 }
예제 #2
0
    private SSHttpThread()
    {
        _locker = new object();

        sendingQueue = new Queue <SSHttpTask> ();
        Loop         = true;
        httpClient   = SSHttpClient.getInstance();

        httpThread = new Thread(new ThreadStart(Run));
        httpThread.Start();
    }