diff --git a/Iceshrimp.Backend/Controllers/Mastodon/Streaming/WebSocketConnection.cs b/Iceshrimp.Backend/Controllers/Mastodon/Streaming/WebSocketConnection.cs index ca1e1312..42400b66 100644 --- a/Iceshrimp.Backend/Controllers/Mastodon/Streaming/WebSocketConnection.cs +++ b/Iceshrimp.Backend/Controllers/Mastodon/Streaming/WebSocketConnection.cs @@ -8,10 +8,12 @@ using Iceshrimp.Backend.Core.Database.Tables; using Iceshrimp.Backend.Core.Events; using Iceshrimp.Backend.Core.Helpers; using Iceshrimp.Backend.Core.Services; +using JetBrains.Annotations; using Microsoft.EntityFrameworkCore; namespace Iceshrimp.Backend.Controllers.Mastodon.Streaming; +[MustDisposeResource] public sealed class WebSocketConnection( WebSocket socket, OauthToken token, diff --git a/Iceshrimp.Backend/Hubs/Helpers/StreamingConnectionAggregate.cs b/Iceshrimp.Backend/Hubs/Helpers/StreamingConnectionAggregate.cs index d6bef570..56cea38b 100644 --- a/Iceshrimp.Backend/Hubs/Helpers/StreamingConnectionAggregate.cs +++ b/Iceshrimp.Backend/Hubs/Helpers/StreamingConnectionAggregate.cs @@ -9,11 +9,13 @@ using Iceshrimp.Backend.Core.Helpers; using Iceshrimp.Backend.Core.Services; using Iceshrimp.Shared.HubSchemas; using Iceshrimp.Shared.Schemas; +using JetBrains.Annotations; using Microsoft.AspNetCore.SignalR; using Microsoft.EntityFrameworkCore; namespace Iceshrimp.Backend.Hubs.Helpers; +[MustDisposeResource] public sealed class StreamingConnectionAggregate : IDisposable { private readonly User _user; diff --git a/Iceshrimp.Backend/Iceshrimp.Backend.csproj b/Iceshrimp.Backend/Iceshrimp.Backend.csproj index 9f08e983..8590e9e5 100644 --- a/Iceshrimp.Backend/Iceshrimp.Backend.csproj +++ b/Iceshrimp.Backend/Iceshrimp.Backend.csproj @@ -18,20 +18,21 @@ + - + - - - - + + + + - - - + + + @@ -43,29 +44,29 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + - - + + - + - - - - + + + + - + - +