public void AddHandler(AbstractNetworkInHandler handler) { lock (this) { if (inHeader == null) { inHeader = handler; } if (inTailer == null) { inTailer = handler; } else { inTailer.NextInHandler = handler; inTailer = handler; } } }
public void AddNetworkHandler(AbstractNetworkInHandler handler) { handlerPipeline.AddHandler(handler); }