// 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);
		}
Exemplo n.º 2
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;
            }
            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);
        }
Exemplo n.º 3
0
 public _IEventListener4_67(TransparentActivationSupport.TADiagnosticProcessor processor
                            )
 {
     this.processor = processor;
 }