Пример #1
0
        protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
        {
            if (!base.IsEquivalent(other, fingerprint))
            {
                return(false);
            }
            LinkSessionConnected o = (LinkSessionConnected)other;
            var touched            = new Capo <bool>(fingerprint, tag.Offset);

            if (touched[0])
            {
                if (linkName_ != o.linkName_)
                {
                    return(false);
                }
            }
            if (touched[1])
            {
                if (result_ != o.result_)
                {
                    return(false);
                }
            }
            if (touched[2])
            {
                if (context_ != o.context_)
                {
                    return(false);
                }
            }
            return(true);
        }
Пример #2
0
        protected override bool EqualsTo(Cell other)
        {
            if (!base.EqualsTo(other))
            {
                return(false);
            }
            LinkSessionConnected o = (LinkSessionConnected)other;

            if (linkName_ != o.linkName_)
            {
                return(false);
            }
            if (result_ != o.result_)
            {
                return(false);
            }
            if (context_ != o.context_)
            {
                return(false);
            }
            return(true);
        }
Пример #3
0
 // LinkSessionConnected event handler
 private void OnLinkSessionConnected(LinkSessionConnected e)
 {
     OnSessionConnected(e.Result, e.Context);
 }