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?

Was it helpful?

Solution

You should use EventRegistryFactory.ForObjectContainer(objectContainer);

For more information read here:

http://developer.db4o.com/Documentation/Reference/db4o-7.13/net35/reference/html/reference/implementation_strategies/callbacks/event_registry_api.html

Best

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top