/// <summary> /// The OnSessionRxAppMessage callback is invoked by a session /// when it receives an application layer message from the peer /// session it's interacting with. /// </summary> /// <param name="session"> /// The IVfxFixSession implementation that is issuing the /// callback to the handler. /// </param> /// <param name="msg"> /// The application message that the session has received /// from its corresponding peer session. /// </param> public void OnSessionRxAppMessage(IVfxFixSession session, FixMessage msg) { if (_mapAppSessions.ContainsKey(session.InstanceId)) { IVfxFixAppSession appSession = _mapAppSessions[session.InstanceId]; _application.OnSessionRxAppMessage(appSession, msg); } }
/// <summary> /// The OnSessionRxAppMessage callback is invoked by a session /// when it receives an application layer message from the peer /// session it's interacting with. /// </summary> /// <param name="session"> /// The IVfxFixSession implementation that is issuing the /// callback to the handler. /// </param> /// <param name="msg"> /// The application message that the session has received /// from its corresponding peer session. /// </param> public void OnSessionRxAppMessage(IVfxFixSession session, FixMessage msg) { // REC: Forward the app message to the application: _fixApplication.OnSessionRxAppMessage(_appSession, msg); }