Skip to content

Commit 98a3986

Browse files
committed
Pragma warning disable CsWinRT1028 as needed
1 parent b9c5e26 commit 98a3986

File tree

1 file changed

+4
-0
lines changed
  • components/Media/src/Extensions/System.Threading.Tasks

1 file changed

+4
-0
lines changed

components/Media/src/Extensions/System.Threading.Tasks/AsyncMutex.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ namespace CommunityToolkit.WinUI.Media;
1010
/// An <see langword="async"/> <see cref="AsyncMutex"/> implementation that can be easily used inside a <see langword="using"/> block
1111
/// </summary>
1212
#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.
1314
internal sealed class AsyncMutex
15+
#pragma warning restore CsWinRT1028
1416
#pragma warning restore CA1001 // Types that own disposable fields should be disposable
1517
{
1618
/// <summary>
@@ -32,7 +34,9 @@ public async Task<IDisposable> LockAsync()
3234
/// <summary>
3335
/// Private class that implements the automatic release of the semaphore
3436
/// </summary>
37+
#pragma warning disable CsWinRT1028 // Partial not required for types never passed to native WinRT method.
3538
private sealed class Lock : IDisposable
39+
#pragma warning restore CsWinRT1028
3640
{
3741
/// <summary>
3842
/// The <see cref="SemaphoreSlim"/> instance of the parent class

0 commit comments

Comments
 (0)