Skip to content

Conversation

@adamjones2
Copy link
Contributor

Resolves #184.

I wrapped the service key in an opaque handle in case you want to change the implementation of how this works again in future (it also makes it easier to ferry around the static type information).

I did feel kind of bad about duplicating every single Decorate and TryDecorate method but I couldn't see any other way to emit the information needed short of a hack like dropping it in some passive ambient state in a static class or something. I preferred the out parameter route.

@khellang khellang merged commit 57b8ace into khellang:master Nov 24, 2025
This was referenced Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make decorated classes directly referenceable

2 participants