Filter the callable surface

Narrow the callable surface before Callers install a Graft. Use Gateway flags plus an intentional public API.

CLI filters

FlagPurpose
--typesComma-separated type names to expose
--methodsComma-separated method names to expose

Example by runtime:

dotnet build ./Pricing/Pricing.csproj
gg ./Pricing/bin/Debug/net9.0/Pricing.dll --types Pricing.PriceService --methods Calculate
Use `--graftOnly` when Gateway should publish the callable surface without starting runtime listeners:
gg --graftOnly <module-path> --types <Type> --methods <Method>

Additional method filters also exist for some runtimes (wildcard patterns). See Callable surface.

Workflow

  1. Start with the smallest public API in code (internal helpers stay non-public).
  2. Add --types / --methods when Gateway would otherwise discover too much.
  3. Open Vision and confirm only intended members appear.
  4. Generate and smoke-test the Caller package.

Next steps