-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Seal a few more extensions types with only a private ctor #117368
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR seals the NullLoggerProvider and NullChangeToken classes in both implementation and reference assemblies to prevent inheritance.
- Mark
NullLoggerProviderassealedin source and ref API. - Mark
NullChangeTokenassealedin source and ref API.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/libraries/Microsoft.Extensions.Logging.Abstractions/src/NullLoggerProvider.cs | Added sealed modifier to NullLoggerProvider. |
| src/libraries/Microsoft.Extensions.Logging.Abstractions/ref/Microsoft.Extensions.Logging.Abstractions.cs | Added sealed modifier to partial NullLoggerProvider. |
| src/libraries/Microsoft.Extensions.FileProviders.Abstractions/src/NullChangeToken.cs | Added sealed modifier to NullChangeToken. |
| src/libraries/Microsoft.Extensions.FileProviders.Abstractions/ref/Microsoft.Extensions.FileProviders.Abstractions.cs | Added sealed modifier to partial NullChangeToken. |
|
Tagging subscribers to this area: @dotnet/area-extensions-logging |
...s/Microsoft.Extensions.Logging.Abstractions/ref/Microsoft.Extensions.Logging.Abstractions.cs
Outdated
Show resolved
Hide resolved
...Extensions.FileProviders.Abstractions/ref/Microsoft.Extensions.FileProviders.Abstractions.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Theodore Tsirpanis <[email protected]>
|
/ba-g dead letter queue |
No description provided.