From 1fe67b21fd3e0fe9e7063cd03e43e1583fce3ce1 Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 28 Aug 2023 22:00:06 -0400 Subject: Patches & data-store updates --- .../src/ManagedRouteStore.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs') diff --git a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs index d859551..e2b87a1 100644 --- a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs +++ b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs @@ -22,6 +22,7 @@ * along with this program. If not, see https://www.gnu.org/licenses/. */ +using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; @@ -50,13 +51,13 @@ namespace VNLib.Plugins.Essentials.Content.Routing _routeStore = plugin.GetOrCreateSingleton(); //Ensure the database is created - _ = plugin.ObserveWork(() => plugin.EnsureDbCreatedAsync(plugin), 500); + _ = plugin.ObserveWork(() => plugin.EnsureDbCreatedAsync(plugin), 1000); } } - public Task GetAllRoutesAsync(ICollection routes) + public Task GetAllRoutesAsync(ICollection routes, CancellationToken cancellation) { - return _routeStore.GetAllRoutesAsync(routes); + return _routeStore.GetAllRoutesAsync(routes, cancellation); } } } -- cgit