(EventContext ctx, Message insertedValue)
| 131 | |
| 132 | /// Our `Message.OnInsert` callback: print new messages. |
| 133 | void Message_OnInsert(EventContext ctx, Message insertedValue) |
| 134 | { |
| 135 | // We are filtering out messages inserted during the subscription being applied, |
| 136 | // since we will be printing those in the OnSubscriptionApplied callback, |
| 137 | // where we will be able to first sort the messages before printing. |
| 138 | if (ctx.Event is not Event<Reducer>.SubscribeApplied) |
| 139 | { |
| 140 | PrintMessage(ctx.Db, insertedValue); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | void PrintMessage(RemoteTables tables, Message message) |
| 145 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…