-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feature/service collection extensions #254
Conversation
Codecov Report
@@ Coverage Diff @@
## master #254 +/- ##
==========================================
- Coverage 80.63% 79.77% -0.87%
==========================================
Files 111 116 +5
Lines 1611 1656 +45
Branches 465 466 +1
==========================================
+ Hits 1299 1321 +22
- Misses 88 104 +16
- Partials 224 231 +7
Continue to review full report at Codecov.
|
e628ccb
to
0c83d09
Compare
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.
I'd remove the existing implementation and replace it with an Autofac-based one (as an additional package).
The original implementation is removed now. I also removed the 'InternalsVisibleTo' parameter for the new package and create some factories for returns these internal implementations. I need to do some tests for these new use cases. |
83439a3
to
4374ca3
Compare
761959f
to
f82a31f
Compare
The new package does not depend on internal references. The infrastructure is open for new packages around DI. |
Kentico.Kontent.Delivery.Extensions.Autofac.DependencyInjection/DeliveryClientFactory.cs
Outdated
Show resolved
Hide resolved
Kentico.Kontent.Delivery.Extensions.Autofac.DependencyInjection/DeliveryClientFactory.cs
Outdated
Show resolved
Hide resolved
Kentico.Kontent.Delivery.Extensions.Autofac.DependencyInjection/DeliveryClientFactory.cs
Outdated
Show resolved
Hide resolved
...nt.Delivery.Extensions.Autofac.DependencyInjection.Tests/ServiceCollectionExtensionsTests.cs
Outdated
Show resolved
Hide resolved
...nt.Delivery.Extensions.Autofac.DependencyInjection/Extensions/ServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
e3597f1
to
7e95db2
Compare
extensions package for a named client extensions package for a named client extensions package for a named client extensions package for a named client extensions package for a named client extensions package for a named client extensions package for a named client extensions package for a named client
949a3d4
to
fe254c5
Compare
/// <summary> | ||
/// A class for providing a custom dependency. | ||
/// </summary> | ||
public interface ICustomServiceProvider |
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.
I'd be a bit more specific and called this INamedServiceProvider
It looks good to me. Besides the one comment above, I think it's ready to be released as beta and tested. |
Motivation
Which issue does this fix? Fixes #240
If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?
Checklist
How to test
If manual testing is required, what are the steps?