-
Notifications
You must be signed in to change notification settings - Fork 27
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
In #63 assumes that if a composition has the [Module] attribute, then the [Provides] attribute is generated for its roots.
But controlling which attributes are added to roots would be ideal, similar to controlling modifiers via RootKinds.
I'm not sure which API is exactly realizable in terms of source generator capabilities.
Maybe something like:
DI.Setup()
.Root<IService>(
"Service",
attributes:
[
new ProvidesAttribute(),
new MethodImplAttribute(MethodImplOptions.AggressiveInlining)
]);Note: Another RootKinds.Provides for the Module API may be a better choice.
This API will be used a lot.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request