aboutsummaryrefslogtreecommitdiff
path: root/plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.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/ManagedRouteStore.cs
parent204e3a11fa8fcce549a0de2db782f0d0c20b4966 (diff)
Patches & data-store updates
Diffstat (limited to 'plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs')
-rw-r--r--plugins/VNLib.Plugins.Essentials.Content.Routing/src/ManagedRouteStore.cs7
1 files changed, 4 insertions, 3 deletions
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<DbRouteStore>();
//Ensure the database is created
- _ = plugin.ObserveWork(() => plugin.EnsureDbCreatedAsync<RoutingContext>(plugin), 500);
+ _ = plugin.ObserveWork(() => plugin.EnsureDbCreatedAsync<RoutingContext>(plugin), 1000);
}
}
- public Task GetAllRoutesAsync(ICollection<Route> routes)
+ public Task GetAllRoutesAsync(ICollection<Route> routes, CancellationToken cancellation)
{
- return _routeStore.GetAllRoutesAsync(routes);
+ return _routeStore.GetAllRoutesAsync(routes, cancellation);
}
}
}