(DbConnection conn, Identity identity, string authToken)
| 40 | } |
| 41 | |
| 42 | void OnConnected(DbConnection conn, Identity identity, string authToken) |
| 43 | { |
| 44 | Console.WriteLine($"Connected to {DB_NAME}"); |
| 45 | Console.WriteLine($"Identity: {identity}"); |
| 46 | |
| 47 | // Save credentials for future sessions |
| 48 | AuthToken.SaveToken(authToken); |
| 49 | |
| 50 | // Subscribe to all tables to receive updates |
| 51 | conn.SubscriptionBuilder() |
| 52 | .OnApplied(OnSubscriptionApplied) |
| 53 | .SubscribeToAllTables(); |
| 54 | } |
| 55 | |
| 56 | void OnConnectError(Exception e) |
| 57 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…