Configure Graft invocation
Point an installed Graft at the intended Receiver.
The GraftConfig host is the runtime endpoint that executes your calls. It is not the
registry URL used to install the Graft — see
Project Key, registry, host, and credentials.
1. Choose execution mode
inmemoryloads the Receiver module in the Caller process.ws://orwss://sends calls to a remote Gateway WebSocket endpoint.- TCP and HTTP/2 are optional Gateway transports and must be explicitly enabled.
Many generated Grafts default to inmemory. Confirm the default for your package in Vision.
2. Configure before the first call
Set host and stateless programmatically before the first generated call. Copy imports and
field names from Vision—the generated runtime context is cached after initialization.
using <generated_namespace>;GraftConfig.Host = "ws://localhost/ws";GraftConfig.Stateless = true;
Prefer static methods and stateless calls for independently routable operations. Instance methods and remote object identity are stateful; they require connection/session affinity and can be lost on Gateway restart or scale-in.
4. Use another configuration source only when needed
Generated packages inspect multiple configuration source levels (environment, files, programmatic settings, then library defaults). Earlier levels win.