How to register for callbacks on a DB4O server?
-
02-10-2019 - |
Question
I have a DB4O server listening on a port
IObjectServer server = Db4oClientServer.OpenServer("filename.db40", 11978);
How do i register for callbacks? For example how do i execute some custom code before an object is read or stored?
Solution
You should use EventRegistryFactory.ForObjectContainer(objectContainer);
For more information read here:
Best
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow