Beispiel #1
0
 public void AddHandler(ClientHandler handler)
 {
     tcpServer.AddHandler(handler);
 }
Beispiel #2
0
 /// <summary>
 /// 添加处理器,处理器对数据进行处理,并推送到下一个处理器
 /// </summary>
 /// <param name="hander"></param>
 public void AddHandler(ClientHandler hander)
 {
     hander.Log = Log;
     pipeline.AddHandler(hander);
 }
Beispiel #3
0
 /// <summary>
 /// 添加处理器
 /// </summary>
 /// <param name="handler">处理器</param>
 public void AddHandler(ClientHandler handler)
 {
     AddHandler(handler, 1);
 }