コード例 #1
0
ファイル: AspRequestInstance.cs プロジェクト: modulexcite/Tx
        public AspRequestInstance Merge(AspRequestInstance other)
        {
            if (other.RecvReq != default(DateTime))
                RecvReq = other.RecvReq;

            if (other.Start != default(DateTime))
                Start = other.Start;

            if (other.StartHandler != default(DateTime))
                StartHandler = other.StartHandler;

            if (other.HttpHandlerEnter != default(DateTime))
                HttpHandlerEnter = other.HttpHandlerEnter;

            if (other.HttpHanlerLeave != default(DateTime))
                HttpHanlerLeave = other.HttpHanlerLeave;

            if (other.EndHandler != default(DateTime))
                EndHandler = other.EndHandler;

            if (other.End != default(DateTime))
                End = other.End;

            return this;
        }
コード例 #2
0
        public AspRequestInstance Merge(AspRequestInstance other)
        {
            if (other.RecvReq != default(DateTime))
            {
                RecvReq = other.RecvReq;
            }

            if (other.Start != default(DateTime))
            {
                Start = other.Start;
            }

            if (other.StartHandler != default(DateTime))
            {
                StartHandler = other.StartHandler;
            }

            if (other.HttpHandlerEnter != default(DateTime))
            {
                HttpHandlerEnter = other.HttpHandlerEnter;
            }

            if (other.HttpHanlerLeave != default(DateTime))
            {
                HttpHanlerLeave = other.HttpHanlerLeave;
            }

            if (other.EndHandler != default(DateTime))
            {
                EndHandler = other.EndHandler;
            }

            if (other.End != default(DateTime))
            {
                End = other.End;
            }

            return(this);
        }