Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDisposable guidance for Transient and shared instances #18306

Merged
merged 2 commits into from
Jun 1, 2020

Conversation

guardrex
Copy link
Collaborator

@guardrex guardrex commented May 14, 2020

Fixes #17766
Fixes #17775

Internal Review Topic (links to new IDisposable guidance for Transient and shared instances section)

The new section appears twice ... 2.x and 3.x parts of the doc ... so you only need to review the first instance of the section. See 👉 Lines 454-487.

Thanks @brandondahler! 🎷

@guardrex guardrex requested review from mkArtakMSFT and mjrousos and removed request for analogrelay, davidfowl and rynowak May 20, 2020 10:56
@guardrex
Copy link
Collaborator Author

guardrex commented May 20, 2020

@mkArtakMSFT @mjrousos ... if it helps move this one along, David gave the original remarks a 👍 at dotnet/extensions#1785 (comment).

Copy link
Member

@mjrousos mjrousos left a comment

Choose a reason for hiding this comment

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

Looks good. My only suggestion is that it might be nice to have a few lines of sample code for each of the scenario solutions to give an example of what they look like.

@mkArtakMSFT
Copy link
Member

@javiercn given that you're driving a related conversation, do we want to make this update now, or wait till you come up with some resolution?

@guardrex
Copy link
Collaborator Author

Ping @javiercn ☝️

@guardrex
Copy link
Collaborator Author

guardrex commented Jun 1, 2020

@mjrousos ... I'm going to go ahead and get this in. If someone wants to float sample code, I'll drop it in later. I'm 🏃😅 trying to get caught up on Blazor issues for the next month ....... or two! 🏃🏃

@guardrex guardrex merged commit e018ad5 into master Jun 1, 2020
@guardrex guardrex deleted the guardrex/di-updates branch June 1, 2020 19:08
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.

Memory leaks with long-living DI scopes Update document regarding the accumulation of Transient services
5 participants