From 36f8658dd40d33b6da4bf1f7aa4b424abb348126 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 11 Nov 2021 10:22:06 +0100 Subject: [PATCH] add new todo for route interceptor --- zero.Core/Routing/ZeroEntityRouteInterceptor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zero.Core/Routing/ZeroEntityRouteInterceptor.cs b/zero.Core/Routing/ZeroEntityRouteInterceptor.cs index 488a1bc3..4bcd6d3a 100644 --- a/zero.Core/Routing/ZeroEntityRouteInterceptor.cs +++ b/zero.Core/Routing/ZeroEntityRouteInterceptor.cs @@ -51,6 +51,11 @@ namespace zero.Core.Routing // DONE [3] we have to find all routes which have become obsolete after update seeding. + // TODO [4] if the entity is part of a route provider it can be checked for stale-ness. + // The problem is if we skip this part and only update dependencies. + // E.g. ProductRouteProvider has a dependency on . As Channel has no route provider it can not be checked for stale-ness. + // This has to be done in ProductRouteProvider as only the provider knows which properties of the entity it is using (therefore which properties need to be compared). + RoutingContext context = GetContext(); context.Session.Advanced.MaxNumberOfRequestsPerSession = 100_000;