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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...