{{ message }}
Add HandlerTemplate to ScanForTypesAttribute#58
Merged
Conversation
Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/03f9fca7-2aac-495b-94d4-354852cc473b Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
… EndsWith check Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/03f9fca7-2aac-495b-94d4-354852cc473b Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add ability to set template of handler per each type
Add HandlerTemplate to ScanForTypesAttribute
Apr 9, 2026
Owner
Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/45210ec8-80ca-48d7-9e03-aeaaf4255cf7 Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
Contributor
Author
Owner
|
@copilot |
…yond constructors Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/fc89dc29-473c-48ba-9b29-64a15376f02e Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
Contributor
Author
…f example Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/039c87db-f442-450d-94d7-fb871c81d9f8 Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
…method example Agent-Logs-Url: https://github.com/Dreamescaper/ServiceScan.SourceGenerator/sessions/f3293937-d4cf-4fcf-aa3c-c1c153bf5421 Co-authored-by: Dreamescaper <17177729+Dreamescaper@users.noreply.github.com>
This was referenced Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ScanForTypesAttributelacked a way to generate per-type expressions beyond method invocations, forcing users to fall back toActivatorwhen constructors require arguments.Changes
HandlerTemplateproperty onScanForTypesAttribute: a string template whereT(word-boundary matched) is replaced with the fully-qualified name of each found typevoid/ first-param-returning methods: template becomes a statement (;appended if absent)Handler— newDI0016diagnostic enforces thisMissingCustomHandlerOnGenerateServiceHandler(DI0013) no longer fires whenHandlerTemplateis set\bT\bregex (static compiled) for safe word-boundary replacementUsage