protected override bool EqualsTo(Cell other) { if (!base.EqualsTo(other)) { return(false); } HelloReq o = (HelloReq)other; if (name_ != o.name_) { return(false); } return(true); }
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); }
void OnHelloReq(HelloReq req) { new HelloResp { Message = String.Format("Hello, {0}!", req.Name) }.InResponseOf(req).Post(); }