खुला हुआ बंद किया हुआ

Extending the TenantAppService #1956


User avatar
0
Spospisil बनाया था
  • ABP Framework version: v4.4.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am trying to extend the TenantAppService and add my own methods to it while retaining the base class/interface methods/properties. So for example, I want to add a method called GetListAllAsync that returnes a list of SassTenantDto objects vs a list of PagedResultDto<SaasTenantDto>. I don't want to override the out of the box class, but just want my own methods added to it when constructor inject ITenantAppService into my razor page.

Do you have a sample of how to do this?


1 उत्तर (ओं)
  • User Avatar
    0
    maliming बनाया था
    सहायता दल Fullstack Developer

    hi

    I don't want to override the out of the box class,

    It seems you can only override the class.

    https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11