diff --git a/AccessQueuePlayground/Components/Pages/Home.razor b/AccessQueuePlayground/Components/Pages/Home.razor
index 813ddb8..756860b 100644
--- a/AccessQueuePlayground/Components/Pages/Home.razor
+++ b/AccessQueuePlayground/Components/Pages/Home.razor
@@ -6,7 +6,15 @@
@inject IAccessQueueManager Manager
+ Expiration Seconds: @Config.ExpirationSeconds, + Activity Seconds: @Config.ActivitySeconds, + Capacity Limit: @Config.CapacityLimit +
+}
@@ -73,11 +81,12 @@
@code {
public AccessQueueStatus? Status;
-
+ public AccessQueueConfig? Config;
protected override void OnInitialized()
{
Manager.StatusUpdated += OnStatusUpdated;
Status = Manager.GetStatus();
+ Config = Manager.GetConfig();
}
private void OnStatusUpdated()
diff --git a/AccessQueuePlayground/Models/AccessQueueConfig.cs b/AccessQueuePlayground/Models/AccessQueueConfig.cs
new file mode 100644
index 0000000..3bf62ef
--- /dev/null
+++ b/AccessQueuePlayground/Models/AccessQueueConfig.cs
@@ -0,0 +1,10 @@
+namespace AccessQueuePlayground.Models
+{
+ public class AccessQueueConfig
+ {
+ public int ActivitySeconds { get; set; }
+ public int ExpirationSeconds { get; set; }
+ public int CapacityLimit { get; set; }
+
+ }
+}
diff --git a/AccessQueuePlayground/Services/AccessQueueManager.cs b/AccessQueuePlayground/Services/AccessQueueManager.cs
index 15645b1..3a2b2ea 100644
--- a/AccessQueuePlayground/Services/AccessQueueManager.cs
+++ b/AccessQueuePlayground/Services/AccessQueueManager.cs
@@ -2,12 +2,14 @@
using AccessQueuePlayground.Models;
using AccessQueueService.Models;
using AccessQueueService.Services;
+using Microsoft.Extensions.Configuration;
namespace AccessQueuePlayground.Services
{
public class AccessQueueManager : IAccessQueueManager
{
private readonly IAccessService _accessService;
+ private readonly IConfiguration _config;
private ConcurrentDictionary