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

Function UserNameOrIdentity

templates/chat-console-cs/Program.cs:100–100  ·  view source on GitHub ↗
(User user)

Source from the content-addressed store, hash-verified

98
99/// If the user has no set name, use the first 8 characters from their identity.
100string UserNameOrIdentity(User user) => user.Name ?? user.Identity.ToString()[..8];
101
102/// Our `User.OnInsert` callback: if the user is online, print a notification.
103void User_OnInsert(EventContext ctx, User insertedValue)

Callers 6

User_OnInsertFunction · 0.85
User_OnUpdateFunction · 0.85
PrintMessageFunction · 0.85
OnUserInsertMethod · 0.85
OnUserUpdateMethod · 0.85
PrintMessageMethod · 0.85

Calls 1

ToStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…