Переместил ChatHub в слой Application

This commit is contained in:
2026-08-29 17:08:44 +03:00
parent 0bea967bcf
commit d141969e45
6 changed files with 25 additions and 3 deletions
+1
View File
@@ -12,6 +12,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="../AMessanger.Application/AMessanger.Application.csproj" />
<ProjectReference Include="../AMessanger.Core/AMessanger.Core.csproj" /> <ProjectReference Include="../AMessanger.Core/AMessanger.Core.csproj" />
</ItemGroup> </ItemGroup>
+1 -1
View File
@@ -1,4 +1,4 @@
using AMessanger.Core.Hubs; using AMessanger.Application.Hubs;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../AMessanger.Core/AMessanger.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR" />
</ItemGroup>
</Project>
@@ -2,7 +2,7 @@ using AMessanger.Core.Models;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace AMessanger.Core.Hubs; namespace AMessanger.Application.Hubs;
public class ChatHub(ILogger<ChatHub> logger) : Hub public class ChatHub(ILogger<ChatHub> logger) : Hub
{ {
-1
View File
@@ -7,7 +7,6 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR" />
<PackageReference Include="Newtonsoft.Json" /> <PackageReference Include="Newtonsoft.Json" />
</ItemGroup> </ItemGroup>
+5
View File
@@ -1,4 +1,9 @@
<Solution> <Solution>
<Project Path="AMessanger.API/AMessanger.API.csproj" /> <Project Path="AMessanger.API/AMessanger.API.csproj" />
<Project Path="AMessanger.Application/AMessanger.Application.csproj" />
<Project Path="AMessanger.Core/AMessanger.Core.csproj" /> <Project Path="AMessanger.Core/AMessanger.Core.csproj" />
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.SignalR" />
</ItemGroup>
</Solution> </Solution>