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

Function Reducer_OnSetNameEvent

templates/chat-console-cs/Program.cs:157–164  ·  view source on GitHub ↗
(ReducerEventContext ctx, string name)

Source from the content-addressed store, hash-verified

155
156/// Our `OnSetNameEvent` callback: print a warning if the reducer failed.
157void Reducer_OnSetNameEvent(ReducerEventContext ctx, string name)
158{
159 var e = ctx.Event;
160 if (e.CallerIdentity == local_identity && e.Status is Status.Failed(var error))
161 {
162 Console.Write($"Failed to change name to {name}: {error}");
163 }
164}
165
166/// Our `OnSendMessageEvent` callback: print a warning if the reducer failed.
167void Reducer_OnSendMessageEvent(ReducerEventContext ctx, string text)

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…