Skip to content

Support services that implement IAsyncDisposable #249

@jmaillet

Description

@jmaillet

Can TestContext and/or TestServiceProvider be made to implement IAsyncDisposable?

Is your feature request related to a problem? Please describe.
I'm getting an exception on my test TearDown method, where I'm calling _context?.Dispose()
System.InvalidOperationException : 'MyService' type only implements IAsyncDisposable. Use DisposeAsync to dispose the container.

I believe this related to #233. The MyService type uses an IJSObjectReference internally and so it implements IAsyncDisposable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds designMore design is needed before this issue should result in a feature being implemented.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions