Skip to content

Support for AsyncDispose#124

Open
faridmehrhesam wants to merge 2 commits intobelgaard:masterfrom
faridmehrhesam:master
Open

Support for AsyncDispose#124
faridmehrhesam wants to merge 2 commits intobelgaard:masterfrom
faridmehrhesam:master

Conversation

@faridmehrhesam
Copy link

Some registered services might implement IAsyncDisposable, which can cause an exception if Dispose is invoked directly on IServiceProvider. Fortunately, TestClient or HostBuilder can manage service disposal, including any asynchronous disposals, by using DisposeAsync. Therefore, it’s unnecessary to call Dispose directly on IServiceProvider. A test has been added to ensure this functionality works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments