0

Could someone explain me, how to decorate object created by factory?

I've tried like this, but decorator's code not running

Container.BindFactory<Notification, INotificationHandler, NotificationFactory>()
    .FromFactory<CustomNotificationFactory>();
Container.Decorate<INotificationHandler>()
    .With<NotificationHandlerSendTimeOffsetDecorator>();
Steven
  • 166,672
  • 24
  • 332
  • 435

0 Answers0