Ejemplo n.º 1
0
		private void ActivateForDeletionCallback(Transaction trans, ClassMetadata classMetadata
			, ObjectReference @ref, object obj)
		{
			if ([email protected]() && (CaresAboutDeleting(classMetadata) || CaresAboutDeleted(classMetadata
				)))
			{
				// Activate Objects for Callbacks, because in C/S mode Objects are not activated on the Server
				// FIXME: [TA] review activation depth
				IActivationDepth depth = classMetadata.AdjustCollectionDepthToBorders(new FixedActivationDepth
					(1));
				Activate(trans, obj, depth);
			}
		}
Ejemplo n.º 2
0
 private bool ActivatingActiveObject(ActivationMode mode, ObjectReference @ref)
 {
     return !mode.IsRefresh() && @ref.IsActive();
 }