=== Snippet 7: Calling Reducers from Procedures === Note: In C#, you can define helper methods that work with the transaction context rather than calling reducers directly.
(ulong itemId)
| 126 | // Note: In C#, you can define helper methods that work with the transaction context |
| 127 | // rather than calling reducers directly. |
| 128 | private static void ProcessItemLogic(ulong itemId) |
| 129 | { |
| 130 | // ... item processing logic |
| 131 | } |
| 132 | |
| 133 | [SpacetimeDB.Procedure] |
| 134 | public static void FetchAndProcess(ProcedureContext ctx, string url) |
nothing calls this directly
no outgoing calls
no test coverage detected