public void AddHandler(AbstractNetworkInHandler handler) { Monitor.Enter(this); try { if (inHeader == null) { inHeader = handler; } if (inTailer == null) { inTailer = handler; } else { inTailer.NextInHandler = handler; inTailer = handler; } } finally { Monitor.Exit(this); } }
public void AddNetworkHandler(AbstractNetworkInHandler handler) { handlerPipeline.AddHandler(handler); }