Skip to content

Implement IAsyncDisposable #2597

Closed

Description

@roji

dotnet/corefx#37877 added IAsyncDisposable on DbConnection, DbCommand, DbDataReader - we need to override DisposeAsync to actually enable async disposal.

Activity

  1. added this to the 4.1 milestone on Aug 30, 2019
  2. self-assigned this
    on Aug 30, 2019
  3. added 3 commits that reference this issue on Sep 1, 2019
    4fd2b6c
    edd0824
  4. added a commit that references this issue on Sep 3, 2019
    8b186c6
  5. mikkeljohnsen commented on Oct 3, 2019

    @mikkeljohnsen

    How do I use the netstandard2.0 version of 4.1.1 with the normal framework. I'm getting

    error CS7069: Reference to type 'IAsyncDisposable' claims it is defined in 'mscorlib', but it could not be found
    

    I'm compiling with:

    csc -nologo -nowarn:CS0649,CS0169 -nostdlib -noconfig -langversion:7.3 -r:/usr/lib/mono/4.7.2-api/mscorlib.dll -r:/usr/lib/mono/4.7.2-api/Facades/netstandard.dll -r:/usr/lib/mono/4.7.2-api/System.dll -r:System.Core.dll -r:System.Data.dll -r:/usr/lib/mono/System.Threading.Tasks.Extensions/System.Threading.Tasks.Extensions.dll -r:/usr/lib/System.Runtime.CompilerServices.Unsafe.dll -r:/usr/lib/mono/System.Buffers/System.Buffers.dll -r:/usr/lib/mono/System.Memory/System.Memory.dll -r:/usr/lib/System.Numerics.Vectors.dll -r:/usr/lib/mono/Npgsql/Npgsql.dll`
    
  6. mikkeljohnsen commented on Oct 3, 2019

    @mikkeljohnsen

    Sorry, there must be something wrong with Mono 6.4

  7. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions