Skip to content

Should we consider sealed the newly introduced attributes for keyed service #90321

Description

@WeihanLi

We introduced ServiceKeyAttribute and FromKeyedServicesAttribute for keyed service, while they are not sealed, and there're no inherits from the repo search result, since they're new types introduced, should we consider making them sealed?

From the sealed proposal #49944, we may prefer sealed for these types

keyed service PR: #87183

code search result:
https://github.com/search?q=repo%3Adotnet%2Fruntime%20ServiceKeyAttribute&type=code
https://github.com/search?q=repo%3Adotnet%2Fruntime%20FromKeyedServicesAttribute&type=code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions