From d141969e4576c2f4f539b927ea3de652d62450f6 Mon Sep 17 00:00:00 2001 From: ryzij Date: Sat, 29 Aug 2026 17:08:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B8=D0=BB=20ChatHub=20=D0=B2=20=D1=81=D0=BB=D0=BE?= =?UTF-8?q?=D0=B9=20Application?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMessanger.API/AMessanger.API.csproj | 1 + AMessanger.API/Program.cs | 2 +- .../AMessanger.Application.csproj | 17 +++++++++++++++++ .../Hubs/ChatHub.cs | 2 +- AMessanger.Core/AMessanger.Core.csproj | 1 - AMessanger.slnx | 5 +++++ 6 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 AMessanger.Application/AMessanger.Application.csproj rename {AMessanger.Core => AMessanger.Application}/Hubs/ChatHub.cs (90%) diff --git a/AMessanger.API/AMessanger.API.csproj b/AMessanger.API/AMessanger.API.csproj index 8ba9f41..7ba1fb0 100644 --- a/AMessanger.API/AMessanger.API.csproj +++ b/AMessanger.API/AMessanger.API.csproj @@ -12,6 +12,7 @@ + diff --git a/AMessanger.API/Program.cs b/AMessanger.API/Program.cs index b085c96..76d39e5 100644 --- a/AMessanger.API/Program.cs +++ b/AMessanger.API/Program.cs @@ -1,4 +1,4 @@ -using AMessanger.Core.Hubs; +using AMessanger.Application.Hubs; var builder = WebApplication.CreateBuilder(args); diff --git a/AMessanger.Application/AMessanger.Application.csproj b/AMessanger.Application/AMessanger.Application.csproj new file mode 100644 index 0000000..5cc5881 --- /dev/null +++ b/AMessanger.Application/AMessanger.Application.csproj @@ -0,0 +1,17 @@ + + + + net10.0 + enable + enable + + + + + + + + + + + diff --git a/AMessanger.Core/Hubs/ChatHub.cs b/AMessanger.Application/Hubs/ChatHub.cs similarity index 90% rename from AMessanger.Core/Hubs/ChatHub.cs rename to AMessanger.Application/Hubs/ChatHub.cs index df8807e..ea7c755 100644 --- a/AMessanger.Core/Hubs/ChatHub.cs +++ b/AMessanger.Application/Hubs/ChatHub.cs @@ -2,7 +2,7 @@ using AMessanger.Core.Models; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Logging; -namespace AMessanger.Core.Hubs; +namespace AMessanger.Application.Hubs; public class ChatHub(ILogger logger) : Hub { diff --git a/AMessanger.Core/AMessanger.Core.csproj b/AMessanger.Core/AMessanger.Core.csproj index f458737..a823786 100644 --- a/AMessanger.Core/AMessanger.Core.csproj +++ b/AMessanger.Core/AMessanger.Core.csproj @@ -7,7 +7,6 @@ - diff --git a/AMessanger.slnx b/AMessanger.slnx index 04bf814..4ae8611 100644 --- a/AMessanger.slnx +++ b/AMessanger.slnx @@ -1,4 +1,9 @@ + + + + +