[backend] Add [MustDisposeResource] attribute to WebSocketConnection & StreamingConnectionAggregate
This commit is contained in:
parent
5c5e724fd3
commit
fae324c3f3
3 changed files with 23 additions and 18 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue