(EventContext ctx, User insertedValue)
| 101 | |
| 102 | /// Our `User.OnInsert` callback: if the user is online, print a notification. |
| 103 | void User_OnInsert(EventContext ctx, User insertedValue) |
| 104 | { |
| 105 | if (insertedValue.Online) |
| 106 | { |
| 107 | Console.WriteLine($"{UserNameOrIdentity(insertedValue)} is online"); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /// Our `User.OnUpdate` callback: |
| 112 | /// print a notification about name and status changes. |
nothing calls this directly
no test coverage detected
searching dependent graphs…