First commit

This commit is contained in:
2026-08-28 03:54:53 +03:00
commit 7b77e7b774
13 changed files with 254 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR" />
</ItemGroup>
</Project>
+13
View File
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Logging;
namespace AMessanger.Core.Hubs;
public class ChatHub(ILogger<ChatHub> logger) : Hub
{
public async Task SendMessage(string user, string message)
{
logger.LogInformation($"{user}: {message}");
await Clients.All.SendAsync("ReceiveMessage", user, message);
}
}
+12
View File
@@ -0,0 +1,12 @@
namespace AMessanger.Core.Models;
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
public string? Summary { get; set; }
}