File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -500,5 +500,20 @@ defines. Wrapper functions have a small runtime performance penalty, so if you
500
500
have more than a couple of providers that need cleanup, it makes sense to include
501
501
something like CleaningService.
502
502
503
+ Forcing inclusion
504
+
505
+ The normal direction of forced inclusion is that an upstream provider is required
506
+ because a downstream provider uses a type produced by the upstream provider.
507
+
508
+ There are times when the relationship needs to be reversed. For example, a type
509
+ gets modified by a downstream injector. The simplest option is to combine the providers
510
+ into one function.
511
+
512
+ Another possibility is to mark the upstream provider with MustConsume and have it
513
+ produce a type that is only consumed by the downstream provider.
514
+
515
+ Lastly, the providers can be grouped with Cluster so that they'll be included or
516
+ excluded as a group.
517
+
503
518
*/
504
519
package nject
You can’t perform that action at this time.
0 commit comments