Db4objects.Db4o.Events Namespace

Class Types

Class Summary
CancellableObjectEventArgs Argument for object related events which can be cancelled.
ClassEventArgs
CommitEventArgs Arguments for commit time related events.
EventException db4o-specific exception.

Exception thrown during event dispatching if a client provided event handler throws.

The exception thrown by the client can be retrieved by calling EventException.InnerException.
EventRegistryFactory Provides an interface for getting an Db4objects.Db4o.Events.IEventRegistry from an Db4objects.Db4o.IObjectContainer .
ObjectContainerEventArgs Arguments for container related events.
ObjectEventArgs Arguments for object related events.
ObjectInfoEventArgs
QueryEventArgs Arguments for Db4objects.Db4o.Query.IQuery related events.
StringEventArgs
TransactionalEventArgs

Interface Types

Interface Summary
ICancellableEventArgs Argument for events related to cancellable actions.
IEventRegistry Provides a way to register event handlers for specific Db4objects.Db4o.IObjectContainer events.
EventRegistry methods represent events available for registering callbacks. EventRegistry instance can be obtained from Db4objects.Db4o.Events.EventRegistryFactory.
EventRegistry registry =  EventRegistryFactory.ForObjectContainer(container);
A new callback can be registered for an event with the following code:
private static void OnCreated(object sender, ObjectInfoEventArgs args)
{
   Object obj = args.Object;
   if (obj is Pilot)
   {
      Console.WriteLine(obj.ToString());
   }
}
registry.Created+=OnCreated;