private void BindActivatableToActivator(ObjectEventArgs oea)
		{
			object obj = oea.Object;
			if (obj is IActivatable)
			{
				Db4objects.Db4o.Internal.Transaction transaction = (Db4objects.Db4o.Internal.Transaction
					)oea.Transaction();
				ObjectReference objectReference = transaction.ReferenceForObject(obj);
				Bind(obj, ActivatorForObject(transaction, objectReference));
			}
		}
Exemplo n.º 2
0
 private void BindActivatableToActivator(ObjectEventArgs oea)
 {
     var obj = oea.Object;
     if (obj is IActivatable)
     {
         var transaction = (Transaction
             ) oea.Transaction();
         var objectReference = transaction.ReferenceForObject(obj);
         Bind(obj, ActivatorForObject(transaction, objectReference));
     }
 }