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

Function OnDisconnected

templates/chat-console-cs/Program.cs:75–85  ·  view source on GitHub ↗
(DbConnection conn, Exception? e)

Source from the content-addressed store, hash-verified

73
74/// Our `OnDisconnect` callback: print a note, then exit the process.
75void OnDisconnected(DbConnection conn, Exception? e)
76{
77 if (e != null)
78 {
79 Console.Write($"Disconnected abnormally: {e}");
80 }
81 else
82 {
83 Console.Write($"Disconnected normally.");
84 }
85}
86
87/// Register all the callbacks our app will use to respond to database events.
88void RegisterCallbacks(DbConnection conn)

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…