예제 #1
0
 public void AddHandler(AbstractNetworkOutHandler handler)
 {
     Monitor.Enter(this);
     try
     {
         if (outTailer == null)
         {
             outTailer = handler;
         }
         handler.NextOutHandler = outHeader;
         outHeader = handler;
     }
     finally
     {
         Monitor.Exit(this);
     }
 }
예제 #2
0
 public void AddNetworkHandler(AbstractNetworkOutHandler handler)
 {
     handlerPipeline.AddHandler(handler);
 }