I have a background doing some staff on some tables. My main db is firebird so i have some deadlocks because happens the background task try to change a record in a active transaction of the foreground task.
Now, i theres a way to check if the connection manager has some transaction in course,i just can say on my foreground task and wait for no active transaction on the main task.
Is possible to ask to connection manager for active transactions?
I recommend to store object instead of connection because the RefCount property of interface won’t be increased. later you can call Supports and receive required interface.