Beispiel #1
0
        public IncomingMessage Visit(Mantle.Fix44.Heartbeat msg)
        {
            if (!msg.TestReqID.HasValue)
            {
                return(null);
            }
            var res = new IncomingMessage();

            res.SendingTime = msg.StandardHeader.SendingTime.Value;
            res.TestRespID  = msg.TestReqID.Value;
            return(res);
        }
Beispiel #2
0
        public Mantle.Fix44.Heartbeat Heartbeat(string testReqID)
        {
            var res = new Mantle.Fix44.Heartbeat()
            {
                StandardHeader = StandardHeader()
            };

            res.TestReqID.Value = testReqID;
            if (_cfg.Username != null)
            {
                res.Username.Value = _cfg.Username;
            }
            if (_cfg.Password != null)
            {
                res.Password.Value = _cfg.Password;
            }
            return(res);
        }
Beispiel #3
0
 public Mantle.Fix44.Heartbeat Heartbeat(string testReqID)
 {
     var res = new Mantle.Fix44.Heartbeat() { StandardHeader = StandardHeader() };
     res.TestReqID.Value = testReqID;
     if (_cfg.Username != null) res.Username.Value = _cfg.Username;
     res.Password.Value = _cfg.Password;
     return res;
 }