Saneject 0.9.0 (beta) #16
alexanderlarsen
announced in
Releases
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features
BindComponent<TInterface, TConcrete>().FromProxy()
binding locator that greatly simplifies working with proxies. At injection time, the system will create the stub and proxy asset instance for you and inject the asset. This is now the recommended workflow for normal use cases. Much faster and less context-switching than creating manual instances, as multiple proxies can be created declaratively in one injection pass.Changes
InterfaceProxyObject
toProxyObject
for simplicity and conciseness. Required coordinated renames across Roslyn, code generation, and stub generation.BindingValidator
class instead of having it inside theBinding
itself.BindingIdentityHelper
that constructs a consistent binding identity string for logging, making logs more scannable.FromProxy()
.Validation & Testing
FromProxy()
method.FromProxy()
. Stub generation cannot be tested directly, since it triggers a domain reload (which kills the test process), but loading and creating the proxy asset is verified in CI.This discussion was created from the release Saneject 0.9.0 (beta).
Beta Was this translation helpful? Give feedback.
All reactions