public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { ObjectEventArgs objectArgs = (ObjectEventArgs)args; updated.Add(objectArgs.Object); }
private void OnActivated(object sender, ObjectInfoEventArgs e) { Type currentType = e.Object.GetType(); while (currentType != typeof(object)) { _activations.Add(currentType, ActivationCount(currentType) + 1); currentType = currentType.BaseType; } }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { _enclosing.AssertClientTransaction(args); instantiatedLog.xed = true; var obj = args.Object; var objectReference = _enclosing.Trans().ReferenceSystem().ReferenceForObject (obj); Assert.IsNotNull(objectReference); Assert.AreSame(objectReference, args.Info); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { object o = ((ObjectEventArgs)args).Object; if (o is PartialCollectionReplicationTestCase.Data) { created.Add((PartialCollectionReplicationTestCase.Data)o); } this._enclosing.Ods(o); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { if (this._enclosing.doThrow) { if (((ObjectInfoEventArgs)args).Info.GetObject().GetType().Equals(typeof(ExceptionInUpdatingCallbackCorruptionTestCase.Item ))) { throw new Exception(); } } }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { if (doThrow.value) { if (((ObjectInfoEventArgs)args).Info.GetObject().GetType().Equals(typeof(ExceptionsInCallbackTestCase.Item ))) { throw new Exception(); } } }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { this._enclosing.AssertClientTransaction(((ObjectInfoEventArgs)args)); instantiatedLog.xed = true; object obj = ((ObjectInfoEventArgs)args).Object; ObjectReference objectReference = this._enclosing.Trans().ReferenceSystem().ReferenceForObject (obj); Assert.IsNotNull(objectReference); Assert.AreSame(objectReference, ((ObjectInfoEventArgs)args).Info); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { object obj = ((ObjectInfoEventArgs)args).Object; if (!(obj is UpdateInCallbackThrowsTestCase.Item)) { return; } UpdateInCallbackThrowsTestCase.Item item = (UpdateInCallbackThrowsTestCase.Item)obj; if (!item._name.Equals("foo")) { return; } Assert.Expect(typeof(Db4oIllegalStateException), new _ICodeBlock_83(this, item)); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { this._enclosing.BindActivatableToActivator((ObjectEventArgs)args); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { this._enclosing.AssertClientTransaction(((ObjectInfoEventArgs)args)); activationLog.xed = true; }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { var obj = args.Object; if (!(obj is Item)) { return; } var item = (Item) obj; if (!item._name.Equals("foo")) { return; } updatedTriggered.value = true; Assert.Expect(typeof (Db4oIllegalStateException), new _ICodeBlock_116(this, item)); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { if (doThrow.value) { if (args.Info.GetObject().GetType().Equals(typeof (Item ))) { throw new Exception(); } } }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { _enclosing.AssertClientTransaction(args); activationLog.xed = true; }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { this._enclosing.Purge((Transaction)((ObjectInfoEventArgs)args).Transaction(), (int )((ObjectInfoEventArgs)args).Info.GetInternalID()); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { deletionLog.xed = true; this._enclosing.AssertItemIsActive(args); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { _enclosing._updated.Increment(); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { _enclosing.BindActivatableToActivator(args); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { ObjectEventArgs objectArgs = args; updated.Add(objectArgs.Object); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { throw new NotImplementedException(); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { deletionLog.xed = true; _enclosing.AssertItemIsActive(args); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { this._enclosing._updated.Increment(); }
public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args ) { throw new NotImplementedException(); }
public void OnEvent(object sender, ObjectInfoEventArgs args ) { }