Open Closed

Extending the TenantAppService #1956


User avatar
0
Spospisil created
  • 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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team 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 v9.1.0-preview. Updated on November 19, 2024, 12:56