mirror of
https://github.com/ryzij/AMessanger-Server.git
synced 2026-09-18 11:13:22 +00:00
Переместил ChatHub в слой Application
This commit is contained in:
@@ -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,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
|
||||||
{
|
{
|
||||||
@@ -7,7 +7,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.SignalR" />
|
|
||||||
<PackageReference Include="Newtonsoft.Json" />
|
<PackageReference Include="Newtonsoft.Json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user