about summary refs log tree commit diff
path: root/MatrixUtils.Web/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-08-11 15:14:30 +0200
committerRory& <root@rory.gay>2025-08-11 15:14:30 +0200
commit47bd54a9646c4093d638292b67974ad58d4471c4 (patch)
treed6b730833657ca4a4fcf955d149a5dbe23dca2e3 /MatrixUtils.Web/Program.cs
parentVarious changes, room create/upgrade work (diff)
downloadMatrixUtils-47bd54a9646c4093d638292b67974ad58d4471c4.tar.xz
Room upgrade CLI, more RMU GUI work
Diffstat (limited to 'MatrixUtils.Web/Program.cs')
-rw-r--r--MatrixUtils.Web/Program.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/MatrixUtils.Web/Program.cs b/MatrixUtils.Web/Program.cs

index 57fe03d..cad5393 100644 --- a/MatrixUtils.Web/Program.cs +++ b/MatrixUtils.Web/Program.cs
@@ -1,6 +1,7 @@ using System.Net; using System.Text.Json; using System.Text.Json.Serialization; +using ArcaneLibs.Blazor.Components.Services; using Blazored.LocalStorage; using Blazored.SessionStorage; using LibMatrix.Extensions; @@ -20,8 +21,7 @@ builder.RootComponents.Add<HeadOutlet>("head::after"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); builder.Services.AddBlazorJSRuntime(); -builder.Services.AddWebWorkerService(webWorkerService => -{ +builder.Services.AddWebWorkerService(webWorkerService => { // Optionally configure the WebWorkerService service before it is used // Default WebWorkerService.TaskPool settings: PoolSize = 0, MaxPoolSize = 1, AutoGrow = true // Below sets TaskPool max size to 2. By default the TaskPool size will grow as needed up to the max pool size. @@ -48,8 +48,7 @@ catch (Exception e) { Console.WriteLine("Could not load appsettings: " + e); } -builder.Logging.AddConfiguration( - builder.Configuration.GetSection("Logging")); +builder.Logging.AddConfiguration(builder.Configuration.GetSection("Logging")); builder.Services.AddBlazoredLocalStorage(config => { config.JsonSerializerOptions.DictionaryKeyPolicy = JsonNamingPolicy.CamelCase; @@ -82,5 +81,6 @@ MatrixHttpClient.LogRequests = false; builder.Services.AddRoryLibMatrixServices(); builder.Services.AddScoped<RmuSessionStore>(); +builder.Services.AddSingleton<BlazorSaveFileService>(); // await builder.Build().RunAsync(); await builder.Build().BlazorJSRunAsync(); \ No newline at end of file