File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
components/Media/src/Extensions/System.Threading.Tasks Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ namespace CommunityToolkit.WinUI.Media;
10
10
/// An <see langword="async"/> <see cref="AsyncMutex"/> implementation that can be easily used inside a <see langword="using"/> block
11
11
/// </summary>
12
12
#pragma warning disable CA1001 // Types that own disposable fields should be disposable
13
+ #pragma warning disable CsWinRT1028 // Partial not required for types never passed to native WinRT method.
13
14
internal sealed class AsyncMutex
15
+ #pragma warning restore CsWinRT1028
14
16
#pragma warning restore CA1001 // Types that own disposable fields should be disposable
15
17
{
16
18
/// <summary>
@@ -32,7 +34,9 @@ public async Task<IDisposable> LockAsync()
32
34
/// <summary>
33
35
/// Private class that implements the automatic release of the semaphore
34
36
/// </summary>
37
+ #pragma warning disable CsWinRT1028 // Partial not required for types never passed to native WinRT method.
35
38
private sealed class Lock : IDisposable
39
+ #pragma warning restore CsWinRT1028
36
40
{
37
41
/// <summary>
38
42
/// The <see cref="SemaphoreSlim"/> instance of the parent class
You can’t perform that action at this time.
0 commit comments