Skip to content

Example Echo (C#)

Responsibility

Demo capability provider written in C# / ASP.NET Minimal APIs. Shows how to expose custom .NET logic to workflows via the capability registry — no orchestrator code changes.

Capability:

  • example.echo.csharp — echo a message string back as JSON

Architecture

This is a capability provider (see Deploy integration contract):

  • Registers with capability-registry at startup
  • Heartbeats on the lease
  • Orchestrator discovers endpoints dynamically
  • No EGRESS_*_URL env var on orchestrator

Connection Model

None. This demo has no credentials and does not register a workflow_connection capability. Demo workflows call it with service_call without a connection: field. Do not ship a flows/connections/ stub — empty documents would show up in the Connections screen.

Example Workflow

  • Workflow: flows/workflows/example_echo_csharp_demo.yaml
  • HTTP trigger: POST /v1/api/examples/echo-csharp
  • Step fields (first-class): message

How-to: C# Custom Process.

Deploy

  • Image: meshflows/example-echo-csharp
  • Deployment: example-echo-csharp
  • Service path: engine/services/example-echo-csharp/

Health

  • GET /healthz
  • GET /readyz
  • GET /internal/capabilities