consume-remote-services

Installation
SKILL.md

Consume ABP Remote Services with C# Client Proxies

ABP generates client proxies so you call a remote HTTP API through its C# interface (await _bookService.GetListAsync()) without touching HttpClient. The proxies handle route/verb mapping, JSON (de)serialization, correlation id, current tenant/culture, API versioning, and error → exception translation. Authentication is not automatic — by default no token is attached (see Authentication below).

Both flavors need a shared service interface that extends IRemoteService — IApplicationService already does, so any app-service interface works. Put it in a shared project (typically *.Application.Contracts).

When to Use

  • Calling a remote ABP HTTP API from C# through its service interface.
  • Choosing between dynamic (runtime) and static (build-time) client proxies.
  • Pointing proxies at a BaseUrl (or named endpoint) via AbpRemoteServiceOptions.
  • Wiring tiered / microservice calls where each service has its own endpoint.
  • Adding retry/Polly policies to proxy HTTP clients.

When Not to Use

  • Exposing your own application services as REST endpoints — use the expose-http-apis skill.
  • Deciding whether the call should be synchronous HTTP or an asynchronous distributed event, or setting up outbox/inbox — use the design-module-and-service-communication skill.
  • Routing the proxy calls through Dapr service invocation — use the integrate-dapr-services skill.
Installs
19
GitHub Stars
32
First Seen
Sep 5, 2026