Skip to main content
Source: Al0104PreferAwaitUsingAnalyzer.cs

Description

When a type implements IAsyncDisposable, using using instead of await using calls the synchronous Dispose() method, potentially blocking or skipping async cleanup.

Bad Code

Good Code

Properties

  • Category: Reliability
  • Severity: Warning
  • Enabled by default: True
  • Code fix available: False

Configuration