diff --git a/src/Tgstation.Server.Host/Components/Watchdog/SessionController.cs b/src/Tgstation.Server.Host/Components/Watchdog/SessionController.cs index 26d341dc29..0fe96e038d 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/SessionController.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/SessionController.cs @@ -205,7 +205,9 @@ namespace Tgstation.Server.Host.Components.Watchdog /// Finalize the /// /// The finalizer dispose pattern is necessary so we don't accidentally leak the executable +#pragma warning disable CA1821 // Remove empty Finalizers //TODO remove this when https://github.com/dotnet/roslyn-analyzers/issues/1241 is fixed ~SessionController() => Dispose(false); +#pragma warning restore CA1821 // Remove empty Finalizers /// public void Dispose() diff --git a/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs b/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs index 81b5d76d67..9627a3e25e 100644 --- a/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs +++ b/src/Tgstation.Server.Host/Core/SemaphoreSlimContext.cs @@ -43,7 +43,9 @@ namespace Tgstation.Server.Host.Core /// /// Finalize the /// +#pragma warning disable CA1821 // Remove empty Finalizers //TODO remove this when https://github.com/dotnet/roslyn-analyzers/issues/1241 is fixed ~SemaphoreSlimContext() => Dispose(); +#pragma warning restore CA1821 // Remove empty Finalizers /// /// Release the lock on