MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / AddTwoNumbers

Method AddTwoNumbers

docs/test-csharp-snippets/Module.cs:8–12  ·  view source on GitHub ↗

=== Snippet 1: Defining Procedures ===

(ProcedureContext ctx, uint lhs, uint rhs)

Source from the content-addressed store, hash-verified

6{
7 // === Snippet 1: Defining Procedures ===
8 [SpacetimeDB.Procedure]
9 public static ulong AddTwoNumbers(ProcedureContext ctx, uint lhs, uint rhs)
10 {
11 return (ulong)lhs + (ulong)rhs;
12 }
13
14 // === Snippet 2: Accessing the database ===
15 [SpacetimeDB.Table(Accessor = "MyTable")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected