コード例 #1
0
        protected override bool EqualsTo(Cell other)
        {
            if (!base.EqualsTo(other))
            {
                return(false);
            }
            HelloReq o = (HelloReq)other;

            if (name_ != o.name_)
            {
                return(false);
            }
            return(true);
        }
コード例 #2
0
        protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
        {
            if (!base.IsEquivalent(other, fingerprint))
            {
                return(false);
            }
            HelloReq o       = (HelloReq)other;
            var      touched = new Capo <bool>(fingerprint, tag.Offset);

            if (touched[0])
            {
                if (name_ != o.name_)
                {
                    return(false);
                }
            }
            return(true);
        }
コード例 #3
0
ファイル: HelloCase.cs プロジェクト: awesomedotnetcore/x2net
 void OnHelloReq(HelloReq req)
 {
     new HelloResp {
         Message = String.Format("Hello, {0}!", req.Name)
     }.InResponseOf(req).Post();
 }