Add ScanForTypesAttribute as dedicated attribute for custom type handling#53
Conversation
…e on GenerateServiceRegistrationsAttribute Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
GenerateServiceHandlerAttribute as dedicated attribute for custom type handling
Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
|
@copilot Let me know if you have other naming suggestions. |
…omHandler to Handler Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
Done in dfd4989:
The |
GenerateServiceHandlerAttribute as dedicated attribute for custom type handlingScanForTypesAttribute as dedicated attribute for custom type handling
|
@copilot |
… [Conditional] Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>

GenerateServiceRegistrationsAttributewithCustomHandlerset was awkward — registration-specific properties (Lifetime,AsSelf,AsImplementedInterfaces,KeySelector) are meaningless in that context, and the attribute name itself is misleading since the handler may not register anything.Changes
ScanForTypesAttribute— contains all filtering properties (AssignableTo,TypeNameFilter,AttributeFilter, etc.) andHandler, but none of the registration-specific onesCustomHandleronGenerateServiceRegistrationsAttributemarked[Obsolete("Use ScanForTypesAttribute instead.", error: false)]— still functionalDI0013—ScanForTypesAttributeused withoutHandlersetDI0014—ScanForTypesAttributeandGenerateServiceRegistrationsAttributeused on the same methodFindServicesToRegister/ source generation pipelineMigration
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.