-
Notifications
You must be signed in to change notification settings - Fork 0
Add IConfiguration and IServiceCollection extensions #12
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 adds extension methods for IConfiguration and IServiceCollection to simplify working with strongly-typed configuration options in ASP.NET Core applications. The changes provide convenient methods for retrieving configuration sections and binding them to strongly-typed objects.
Key changes:
- Added IConfiguration extension methods for getting strongly-typed options and configuration sections
- Added IServiceCollection extension method for registering strongly-typed options with dependency injection
- Comprehensive unit test coverage for both extension classes
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| IConfigurationExtensions.cs | Adds GetOptions and GetSection extension methods for IConfiguration |
| IServiceCollectionExtensions.cs | Adds AddOptions extension method for IServiceCollection |
| IConfigurationExtensionsTests.cs | Unit tests covering all scenarios for IConfiguration extensions |
| IServiceCollectionExtensionsTests.cs | Unit tests covering all scenarios for IServiceCollection extensions |
| Neolution.Utilities.AspNetCore.UnitTests.csproj | Added global usings for test dependencies and extensions |
| CHANGELOG.md | Documents the new extension methods |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Neolution.Utilities.AspNetCore/Extensions/IServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
|
/_fa31d
/_fa31d
/1e024a
/30f9a5
/dbb8a0
Minimum allowed coverage is Generated by 🐒 cobertura-action against 6b7ff23 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
No description provided.