Skip to content

Commit

Permalink
Pragma warning disable CsWinRT1028 as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Sep 17, 2024
1 parent cedbe4d commit f4802e2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ namespace CommunityToolkit.WinUI.Media;
/// An <see langword="async"/> <see cref="AsyncMutex"/> implementation that can be easily used inside a <see langword="using"/> block
/// </summary>
#pragma warning disable CA1001 // Types that own disposable fields should be disposable
#pragma warning disable CsWinRT1028 // Partial not required for types never passed to native WinRT method.
internal sealed class AsyncMutex
#pragma warning restore CsWinRT1028
#pragma warning restore CA1001 // Types that own disposable fields should be disposable
{
/// <summary>
Expand All @@ -32,7 +34,9 @@ public async Task<IDisposable> LockAsync()
/// <summary>
/// Private class that implements the automatic release of the semaphore
/// </summary>
#pragma warning disable CsWinRT1028 // Partial not required for types never passed to native WinRT method.
private sealed class Lock : IDisposable
#pragma warning restore CsWinRT1028
{
/// <summary>
/// The <see cref="SemaphoreSlim"/> instance of the parent class
Expand Down

0 comments on commit f4802e2

Please sign in to comment.