Open Closed

Client proxies to a common project #8591


User avatar
0
carl.hallqvist created
  • ABP Framework version: v8.3.1
  • UI Type: Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Steps to reproduce the issue:

We have a number of services, e.g., DocumentService, InvoiceService and CustomerService

InvoiceService do API calls to CustomerService and DocumentService. CustomerService do API calls to InvoiceService.

We have tried to create a new class library and generate all client proxies in there. But the generated classes contain includes to the specific project. That means that it will be circular references?

Can you please guide us how to deal with the client proxies when two services do requests to each other?

Thanks


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

    hi

    You can reference the DocumentServiceModule.HttpApi.Client in InvoiceService host project. Then reference the InvoiceService.HttpApi.Client in DocumentServiceModule host project.

    Do you have xxx.HttpApi.Client project in all of your modules?

Made with ❤️ on ABP v9.2.0-preview. Updated on January 07, 2025, 07:14