(DbConnection conn, Exception? e)
| 73 | |
| 74 | /// Our `OnDisconnect` callback: print a note, then exit the process. |
| 75 | void 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. |
| 88 | void RegisterCallbacks(DbConnection conn) |
nothing calls this directly
no test coverage detected
searching dependent graphs…