コード例 #1
0
ファイル: TestExtension4.cs プロジェクト: galaktor/ngin
 protected override void Process( IActionRequestable actionRequestTarget )
 {
 }
コード例 #2
0
ファイル: EntityExtension.cs プロジェクト: galaktor/ngin
 protected virtual void Process( IActionRequestable actionRequestTarget )
 {
 }
コード例 #3
0
ファイル: EntityExtension.cs プロジェクト: galaktor/ngin
        public void Attatch( IActionRequestRegistry handlerRegistry, IEntityExtensionPublicationStorage storage, IActionRequestable actionRequestTarget, IUpdateRequester updateRequester )
        {
            if ( storage == null )
            {
                throw new ArgumentNullException( "storage", "The given data storage must not be null." );
            }

            if ( handlerRegistry == null )
            {
                throw new ArgumentNullException( "handlerRegistry", "The handler registry must not be null." );
            }

            if ( actionRequestTarget == null )
            {
                throw new ArgumentNullException( "actionRequestTarget", "The action request target must not be null." );
            }

            this.PublicData = storage;
            this.RegisterActionHandlers( handlerRegistry );
            this.ActionRequestTarget = actionRequestTarget;

            this.PublicizeEntityProperties( storage );
            updateRequester.UpdateRequested += this.PublicizeEntityProperties;
        }
コード例 #4
0
ファイル: EntityExtension.cs プロジェクト: galaktor/ngin
        protected virtual void DisposeManaged()
        {
            if ( this.actionRequestBuffer != null )
            {
                lock ( this.actionRequestBufferLock )
                {
                    this.actionRequestBuffer.Clear();
                    this.actionRequestBuffer = null;
                }
            }

            if ( this.actionRequestTarget != null )
            {
                lock ( this.actionRequestTargetLock )
                {
                    this.actionRequestTarget = null;
                }
            }

            if ( this.publicData != null )
            {
                lock ( this.publicDataLock )
                {
                    this.publicData = null;
                }
            }

            if ( this.handledActionKeys != null )
            {
                lock ( this.handledActionKeysLock )
                {
                    this.handledActionKeys.Clear();
                    this.handledActionKeys = null;
                }
            }

            if ( this.System != null )
            {
                this.System.TaskStarted -= this.System_TaskStarted;
                this.System.TaskEnded -= this.System_TaskEnded;

                this.System = null;
            }

            if ( this.LogManager != null )
            {
                this.LogManager = null;
            }

            if ( this.Name != null )
            {
                this.Name = null;
            }
        }
コード例 #5
0
ファイル: TestExtension.cs プロジェクト: galaktor/ngin
 protected override void Process( IActionRequestable actionRequestTarget )
 {
     //this.LogManager.Trace(Namespace.LoggerName, LogLevel.Debugging, "DO SOMETHING!" );
 }