Implemented SignalR to enable real-time communication between the server and connected clients. Added a new hub (`WeatherUpdateHub`), a background service (`SignalRSendService`), and modified both the API backend and React frontend for seamless message broadcasting and handling.
16 lines
469 B
XML
16 lines
469 B
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.2.0" />
|
|
<PackageReference Include="NSwag.AspNetCore" Version="14.2.0" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|