We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbe594 commit 7a05d8eCopy full SHA for 7a05d8e
src/MySqlConnector/MySqlDataSource.cs
@@ -77,8 +77,10 @@ protected override void Dispose(bool disposing)
77
{
78
try
79
80
+#pragma warning disable CA2012 // Safe because method completes synchronously
81
if (disposing)
82
DisposeAsync(IOBehavior.Synchronous).GetAwaiter().GetResult();
83
+#pragma warning restore CA2012
84
}
85
finally
86
src/MySqlConnector/Utilities/TimerQueue.cs
@@ -1,6 +1,8 @@
1
namespace MySqlConnector.Utilities;
2
3
+#pragma warning disable CA1001 // this is a Singleton, so doesn't need to be IDisposable
4
internal sealed class TimerQueue
5
+#pragma warning restore CA1001
6
7
public static TimerQueue Instance { get; } = new();
8
0 commit comments