Skip to content

Add ServiceCollection.MakeReadOnly() - #68051

Merged
eerhardt merged 1 commit into
dotnet:mainfrom
eerhardt:ServiceCollectionMakeReadonly
Apr 15, 2022
Merged

eerhardt merged 1 commit into
dotnet:mainfrom
eerhardt:ServiceCollectionMakeReadonly

Conversation

@eerhardt

Copy link
Copy Markdown
Member

With new hosting API patterns, it is useful to be able to mark a ServiceCollection
as read-only and disallow for any more modifications to it.

Fix #66126

With new hosting API patterns, it is useful to be able to mark a ServiceCollection
as read-only and disallow for any more modifications to it.

Fix dotnet#66126
@ghost

ghost commented Apr 14, 2022

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost ghost assigned eerhardt Apr 14, 2022
@ghost

ghost commented Apr 14, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection
See info in area-owners.md if you want to be subscribed.

Issue Details

With new hosting API patterns, it is useful to be able to mark a ServiceCollection
as read-only and disallow for any more modifications to it.

Fix #66126

Author: eerhardt
Assignees: -
Labels:

new-api-needs-documentation, area-Extensions-DependencyInjection

Milestone: -

@eerhardt
eerhardt merged commit 8d9daab into dotnet:main Apr 15, 2022
@eerhardt
eerhardt deleted the ServiceCollectionMakeReadonly branch April 15, 2022 13:59
@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API Proposal]: Add ServiceCollection.MakeReadOnly()

5 participants