Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi.
How do I apply decorators in IUserComposer?
https://www.lightinject.net/designpatterns/#_code0
composition.Decorate<>()
Does not exist, I want to use a default vs override pattern on services for example.
// Carl
Hi Carl,
You can use the following to acces the light inject container.:
var container = composition.Concrete as LightInject.ServiceContainer;
If you have the container it's possible to use decorators. You can check https://www.zpqrtbnk.net/posts/composing-umbraco-v8/ for more information.
I hope this will help you.
Jarno
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
LightInject Decorators
Hi.
How do I apply decorators in IUserComposer?
https://www.lightinject.net/designpatterns/#_code0
Does not exist, I want to use a default vs override pattern on services for example.
// Carl
Hi Carl,
You can use the following to acces the light inject container.:
If you have the container it's possible to use decorators. You can check https://www.zpqrtbnk.net/posts/composing-umbraco-v8/ for more information.
I hope this will help you.
Jarno
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.