Ejemplo n.º 1
0
 // Nothing to do...
 /// <summary>
 ///     Configures the just opened ObjectContainer by setting event listeners,
 ///     which will be triggered when activation or de-activation is required.
 /// </summary>
 /// <remarks>
 ///     Configures the just opened ObjectContainer by setting event listeners,
 ///     which will be triggered when activation or de-activation is required.
 /// </remarks>
 /// <param name="container">the ObjectContainer to configure</param>
 /// <seealso cref="TransparentPersistenceSupport.Apply(Db4objects.Db4o.Internal.IInternalObjectContainer)
 /// 	">
 ///     TransparentPersistenceSupport.Apply(Db4objects.Db4o.Internal.IInternalObjectContainer)
 /// </seealso>
 public virtual void Apply(IInternalObjectContainer container)
 {
     if (IsTransparentActivationEnabledOn(container))
     {
         return;
     }
     var provider = new TransparentActivationDepthProviderImpl
         ();
     SetActivationDepthProvider(container, provider);
     var registry = EventRegistryFor(container);
     registry.Instantiated += new _IEventListener4_45(this).OnEvent;
     registry.Created += new _IEventListener4_50(this).OnEvent;
     registry.Closing += new _IEventListener4_56(this).OnEvent;
     var processor = new TADiagnosticProcessor
         (this, container);
     registry.ClassRegistered += new _IEventListener4_67(processor).OnEvent;
 }
		// Nothing to do...
		/// <summary>
		/// Configures the just opened ObjectContainer by setting event listeners,
		/// which will be triggered when activation or de-activation is required.
		/// </summary>
		/// <remarks>
		/// Configures the just opened ObjectContainer by setting event listeners,
		/// which will be triggered when activation or de-activation is required.
		/// </remarks>
		/// <param name="container">the ObjectContainer to configure</param>
		/// <seealso cref="TransparentPersistenceSupport.Apply(Db4objects.Db4o.Internal.IInternalObjectContainer)
		/// 	">TransparentPersistenceSupport.Apply(Db4objects.Db4o.Internal.IInternalObjectContainer)
		/// 	</seealso>
		public virtual void Apply(IInternalObjectContainer container)
		{
			if (IsTransparentActivationEnabledOn(container))
			{
				return;
			}
			TransparentActivationDepthProviderImpl provider = new TransparentActivationDepthProviderImpl
				();
			SetActivationDepthProvider(container, provider);
			IEventRegistry registry = EventRegistryFor(container);
			registry.Instantiated += new System.EventHandler<Db4objects.Db4o.Events.ObjectInfoEventArgs>
				(new _IEventListener4_45(this).OnEvent);
			registry.Created += new System.EventHandler<Db4objects.Db4o.Events.ObjectInfoEventArgs>
				(new _IEventListener4_50(this).OnEvent);
			registry.Closing += new System.EventHandler<Db4objects.Db4o.Events.ObjectContainerEventArgs>
				(new _IEventListener4_56(this).OnEvent);
			TransparentActivationSupport.TADiagnosticProcessor processor = new TransparentActivationSupport.TADiagnosticProcessor
				(this, container);
			registry.ClassRegistered += new System.EventHandler<Db4objects.Db4o.Events.ClassEventArgs>
				(new _IEventListener4_67(processor).OnEvent);
		}
			public _IEventListener4_46(TransparentActivationDepthProviderImpl _enclosing)
			{
				this._enclosing = _enclosing;
			}
				public _ITransactionListener_77(_TransactionLocal_73 _enclosing, TransparentActivationDepthProviderImpl.ObjectsModifiedInTransaction
					 objectsModifiedInTransaction)
				{
					this._enclosing = _enclosing;
					this.objectsModifiedInTransaction = objectsModifiedInTransaction;
				}
			public _TransactionLocal_73(TransparentActivationDepthProviderImpl _enclosing)
			{
				this._enclosing = _enclosing;
			}
Ejemplo n.º 6
0
 public _IEventListener4_46(TransparentActivationDepthProviderImpl _enclosing)
 {
     this._enclosing = _enclosing;
 }
Ejemplo n.º 7
0
 public _TransactionLocal_73(TransparentActivationDepthProviderImpl _enclosing)
 {
     this._enclosing = _enclosing;
 }