Starts in:
1 DAY
8 HRS
49 MIN
4 SEC
Starts in:
1 D
8 H
49 M
4 S
Open Closed

Autofac decorator #5807


User avatar
0
Payoff created

Need to add to Autofac registration in modules to add a decorator, something like: // var builder = new ContainerBuilder(); builder.RegisterType<MyService>().As<IMyService>(); builder.RegisterDecorator<IMyService>((context, inner) => new MyServiceDecorator(inner), fromKeyType: typeof(IMyService));

Tnx

ABP Framework version: v7.3.3
UI Type: Angular
Database System: EF Core (PostgreSQL)
Tiered (for MVC) or Auth Server Separated (for Angular): no

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://docs.abp.io/en/abp/latest/Autofac-Integration#using-the-autofac-registration-api

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06