/// <summary> /// Constructor /// </summary> /// <param name="handler"></param> public Server(HandlerI handler) { if (handler == null) throw new System.NullReferenceException(); this.handler = handler; }
public GateCli() { handler = (HandlerI) new Handler(); codec = (CodecI) new Codec(); conn = new TcpConn(handler); }