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;
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.
1314internal 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
You can’t perform that action at this time.
0 commit comments