Skip to content

Conversation

@srogovtsev
Copy link

As we don't have any unmanaged resources to release, we don't really need finalization (see https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-dispose#implement-the-dispose-pattern, the first example, BaseClassWithSafeHandle).

This will fix autofac/Autofac.WebApi.Owin#15.

…acWebApiDependencyScope

* as we don't have any unmanaged resources to release, we don't need finalization
@codecov
Copy link

codecov bot commented Jul 16, 2022

Codecov Report

Merging #69 (605b78a) into develop (3ddd761) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop     #69   +/-   ##
=======================================
  Coverage     0.00%   0.00%           
=======================================
  Files           23      23           
  Lines          679     677    -2     
  Branches       137     137           
=======================================
+ Misses         679     677    -2     
Impacted Files Coverage Δ
...Integration.WebApi/AutofacWebApiDependencyScope.cs 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ddd761...605b78a. Read the comment docs.

Copy link
Member

@tillig tillig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@tillig tillig merged commit eb579aa into autofac:develop Aug 2, 2022
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.

AutofacWebApiDependencyScope never disposed and stays in finalizer queue

2 participants