private void HandleClientRequest(Protocol.AdsContext context) { var iterator = _middleware.GetEnumerator(); Extensions.RequestHandler next = null; next = () => { if (iterator.MoveNext()) { iterator.Current.Invoke(context, next); } }; next(); }
private void _server_OnClientReadRequest(Protocol.AdsContext context) { HandleClientRequest(context); }