Filter the callable surface
Narrow the callable surface before Callers install a Graft. Use Gateway flags plus an intentional public API.
CLI filters
| Flag | Purpose |
|---|---|
--types | Comma-separated type names to expose |
--methods | Comma-separated method names to expose |
Example by runtime:
dotnet build ./Pricing/Pricing.csprojgg ./Pricing/bin/Debug/net9.0/Pricing.dll --types Pricing.PriceService --methods Calculate
gg --graftOnly <module-path> --types <Type> --methods <Method>
Additional method filters also exist for some runtimes (wildcard patterns). See Callable surface.
Workflow
- Start with the smallest public API in code (internal helpers stay non-public).
- Add
--types/--methodswhen Gateway would otherwise discover too much. - Open Vision and confirm only intended members appear.
- Generate and smoke-test the Caller package.