Skip to content

Commit

Permalink
added blazr renderstate
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Jan 6, 2024
1 parent fc06693 commit 5b82054
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/web/Jordnaer.Client/Jordnaer.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<ItemGroup>
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
<PackageReference Include="Blazored.SessionStorage" Version="2.4.0" />
<PackageReference Include="Blazr.RenderState.WASM" Version="0.9.1" />
<PackageReference Include="CodeBeam.MudBlazor.Extensions" Version="6.7.0" />
<PackageReference Include="Bogus" Version="35.2.0" />
<PackageReference Include="FluentValidation" Version="11.9.0" />
Expand Down
3 changes: 3 additions & 0 deletions src/web/Jordnaer.Client/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Blazored.LocalStorage;
using Blazored.SessionStorage;
using Blazr.RenderState.WASM;
using Jordnaer.Client;
using Jordnaer.Client.Features.Authentication;
using Jordnaer.Client.Features.Category;
Expand Down Expand Up @@ -70,6 +71,8 @@
builder.Services.AddScoped<IChatService, ChatService>();
builder.Services.AddScoped<ChatSignalRClient>();

builder.AddBlazrRenderStateWASMServices();

var host = builder.Build();

await host.RunAsync();
1 change: 1 addition & 0 deletions src/web/Jordnaer/Jordnaer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.1" />
<PackageReference Include="Blazr.RenderState.Server" Version="0.9.1" />

<PackageReference Include="MassTransit.AspNetCore" Version="7.3.1" />
<PackageReference Include="MassTransit.Azure.ServiceBus.Core" Version="8.1.3" />
Expand Down
4 changes: 4 additions & 0 deletions src/web/Jordnaer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Text.Json.Serialization;
using Azure.Storage.Blobs;
using Blazr.RenderState.Server;
using Jordnaer.Client;
using Jordnaer.Client.SignalR;
using Jordnaer.Server.Authentication;
using Jordnaer.Server.Authorization;
using Jordnaer.Server.Components;
Expand Down Expand Up @@ -71,6 +73,8 @@
builder.AddGroupServices();
builder.AddGroupSearchServices();

builder.AddBlazrRenderStateServerServices();

var app = builder.Build();

if (app.Environment.IsDevelopment())
Expand Down

0 comments on commit 5b82054

Please sign in to comment.