C# Quickstart
Who This Is For
Application engineers integrating governed session + execution calls in under 5 minutes.
Prerequisites
- DriftGate session token
- Staging workspace access
- Agent identifier (example:
refund-agent)
Two-Line Hello World
C#
var session = await client.Session.StartAsync(new SessionStartRequest { Agent = "refund-agent" });
await session.ExecuteAsync(new ExecutionRequest { Input = new { orderId = "123" } });Production Considerations
- Keep staging as default during integration
- Capture
meta.requestIdon every call - Add retry logic only for retryable errors
Failure Handling
See Error Codes and Envelope Reference.
Last updated on