Skip to content

Commit 11ffb0d

Browse files
committed
Modernize .NET app and convert to fastendpoints
1 parent d0634f4 commit 11ffb0d

41 files changed

Lines changed: 967 additions & 648 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.run/Fragment.NetSlum.Server.run.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<component name="ProjectRunConfigurationManager">
2-
<configuration default="false" name="Fragment.NetSlum.Server" type="DotNetProject" factoryName=".NET Project">
2+
<configuration default="false" name="Fragment.NetSlum.Server" type="DotNetProject" factoryName=".NET Project" activateToolWindowBeforeRun="false">
33
<option name="EXE_PATH" value="$PROJECT_DIR$/src/Fragment.NetSlum.Server/bin/Debug/net8.0/Fragment.NetSlum.Server.exe" />
44
<option name="PROGRAM_PARAMETERS" value="" />
55
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/Fragment.NetSlum.Server/bin/Debug/net8.0" />
66
<option name="PASS_PARENT_ENVS" value="1" />
77
<option name="USE_EXTERNAL_CONSOLE" value="0" />
8+
<option name="ENV_FILE_PATHS" value="" />
9+
<option name="REDIRECT_INPUT_PATH" value="" />
10+
<option name="PTY_MODE" value="Auto" />
11+
<option name="MIXED_MODE_DEBUG" value="0" />
812
<option name="USE_MONO" value="0" />
913
<option name="RUNTIME_ARGUMENTS" value="" />
14+
<option name="AUTO_ATTACH_CHILDREN" value="0" />
1015
<option name="PROJECT_PATH" value="$PROJECT_DIR$/src/Fragment.NetSlum.Server/Fragment.NetSlum.Server.csproj" />
1116
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
1217
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />

src/Fragment.NetSlum.Console/Commands/MigratePlayersCommand.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
22
using System.Globalization;
33
using System.Linq;
4-
using System.Text;
5-
using System.Text.RegularExpressions;
64
using System.Threading.Tasks;
75
using Fragment.NetSlum.Core.Constants;
86
using Fragment.NetSlum.Core.Extensions;

src/Fragment.NetSlum.Core/Fragment.NetSlum.Core.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="EFCore.NamingConventions" Version="8.0.3" />
11-
<PackageReference Include="IPNetwork2" Version="3.2.796">
10+
<PackageReference Include="EFCore.NamingConventions" Version="9.0.0" />
11+
<PackageReference Include="IPNetwork2" Version="3.4.832">
1212
<Aliases>IPNetwork2</Aliases>
1313
</PackageReference>
1414
<PackageReference Include="Mediator.Abstractions" Version="3.0.1" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.19" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.8" />
1616
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
1717
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.8" />
18-
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.3" />
18+
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
1919
<PackageReference Include="Serilog" Version="4.3.0" />
2020
<PackageReference Include="System.Text.Encoding.CodePages" Version="9.0.8" />
2121
<PackageReference Update="Meziantou.Analyzer" Version="2.0.210">

src/Fragment.NetSlum.Core/Models/ImageInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Runtime.InteropServices;
32

43
namespace Fragment.NetSlum.Core.Models;
54

src/Fragment.NetSlum.Networking/Packets/Request/Articles/GetNewsPostRequest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Buffers.Binary;
33
using System.Collections.Generic;
44
using System.Linq;
5-
using System.Runtime.InteropServices.JavaScript;
65
using System.Threading.Tasks;
76
using Fragment.NetSlum.Core.CommandBus;
87
using Fragment.NetSlum.Networking.Attributes;

src/Fragment.NetSlum.Networking/Packets/Request/Guilds/GetGuildShopItemCatalogRequest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System.Collections.Generic;
22
using System.Linq;
3-
using System.Numerics;
43
using System.Threading.Tasks;
54
using Fragment.NetSlum.Core.Buffers;
65
using Fragment.NetSlum.Networking.Attributes;

src/Fragment.NetSlum.Networking/Packets/Request/Guilds/PurchaseGuildShopItemRequest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.Data;
32
using System.Linq;
43
using System.Threading.Tasks;
54
using Fragment.NetSlum.Core.Buffers;

src/Fragment.NetSlum.Networking/Packets/Request/Saves/GetAccountInfoForSaveIdRequest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using Fragment.NetSlum.Networking.Packets.Response.Saves;
1111
using Fragment.NetSlum.Networking.Sessions;
1212
using Fragment.NetSlum.Persistence;
13+
using Microsoft.EntityFrameworkCore;
1314

1415
namespace Fragment.NetSlum.Networking.Packets.Request.Saves;
1516

@@ -39,6 +40,7 @@ public override async ValueTask<ICollection<FragmentMessage>> GetResponse(Fragme
3940
session.PlayerAccountId = accountId.Value;
4041

4142
var serverNews = _database.ServerNews
43+
.AsNoTracking()
4244
.Select(n => n.Content)
4345
.ToArray();
4446

src/Fragment.NetSlum.Networking/Pipeline/Decoders/FragmentFrameDecoder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Fragment.NetSlum.Networking.Crypto;
77
using Fragment.NetSlum.Networking.Objects;
88
using Microsoft.Extensions.Logging;
9-
using Serilog;
109
using OpCodes = Fragment.NetSlum.Networking.Constants.OpCodes;
1110

1211
namespace Fragment.NetSlum.Networking.Pipeline.Decoders;

src/Fragment.NetSlum.Persistence/Listeners/AbstractEntityChangeListener.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Threading.Tasks;
33
using Fragment.NetSlum.Persistence.Contexts;
44
using Microsoft.EntityFrameworkCore;
5-
using Microsoft.EntityFrameworkCore.ChangeTracking;
65

76
namespace Fragment.NetSlum.Persistence.Listeners;
87

0 commit comments

Comments
 (0)