// 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;
 }
Esempio 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;
            }
            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;
        }
 public _IEventListener4_67(TADiagnosticProcessor processor
     )
 {
     this.processor = processor;
 }
Esempio n. 4
0
 public _IEventListener4_67(TADiagnosticProcessor processor
                            )
 {
     this.processor = processor;
 }