aboutsummaryrefslogtreecommitdiff
path: root/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-08-28 22:00:06 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-08-28 22:00:06 -0400
commit1fe67b21fd3e0fe9e7063cd03e43e1583fce3ce1 (patch)
treeec568fa4b447a0188ced3cc01be61f0ad121ac36 /plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
parent204e3a11fa8fcce549a0de2db782f0d0c20b4966 (diff)
Patches & data-store updates
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs')
-rw-r--r--plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
index 59a88c1..fda572a 100644
--- a/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
+++ b/plugins/VNLib.Plugins.Essentials.Content.Routing/src/Router.cs
@@ -25,6 +25,7 @@
using System;
using System.Linq;
using System.Buffers;
+using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections.Concurrent;
@@ -40,7 +41,7 @@ using VNLib.Plugins.Essentials.Content.Routing.Model;
namespace VNLib.Plugins.Essentials.Content.Routing
{
- internal class Router : IPageRouter
+ internal sealed class Router : IPageRouter
{
private static readonly RouteComparer Comparer = new();
@@ -92,7 +93,7 @@ namespace VNLib.Plugins.Essentials.Content.Routing
List<Route> collection = new();
//Load all routes from the backing store and filter them
- await Store.GetAllRoutesAsync(collection);
+ await Store.GetAllRoutesAsync(collection, CancellationToken.None);
Logger.Debug("Found {r} routes in store", collection.Count);