public SocketReceiveHelper(SocketServerHelper serverHelper, SocketClientHelper clientHelper, Socket socket, string key, ISocketProcess process, Action closeCallback)
 {
     this.serverHelper  = serverHelper;
     this.clientHelper  = clientHelper;
     this.socket        = socket;
     this.process       = process;
     this.key           = key;
     this.closeCallback = closeCallback;
 }
 public SocketThreadHelper(SocketServerHelper helper, string key, Socket socket, ISocketProcess process, Action <Socket> closeCallback)
 {
     this.socket = socket;
     this.helper = new SocketReceiveHelper(helper, null, socket, key, process, () =>
     {
         if (closeCallback != null)
         {
             closeCallback(socket);
         }
     });
 }