Beispiel #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);
     }
 }
Beispiel #2
0
 public void AddNetworkHandler(AbstractNetworkOutHandler handler)
 {
     handlerPipeline.AddHandler(handler);
 }