Thank you Wagner ! it works enough. The event is fired multiple times per connection, so I'll try to filter in some way; Is there an event which fire only once per connection ?
Then you can use directly in the connection factory. But it would be safer if you use the OnDbRetrieved event. In future versions RemoteDB might use a connection pool so that the same connection can be used by different clients.
Is there any issue with using the current approach?