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