/// <summary> /// The OnSessionLogout callback method is invoked by an /// instance of a session when it completes a logout with /// the peer system it's communicating with. /// </summary> /// <param name="session"> /// The IVfxFixSession implementation that is issuing /// the callback to the handler. /// </param> /// <param name="msg"> /// The FIX logout message (request or response) that was /// received from the peer session. /// </param> public void OnSessionLogout(IVfxFixSession session, FixMessage msg) { if (_mapAppSessions.ContainsKey(session.InstanceId)) { IVfxFixAppSession appSession = _mapAppSessions[session.InstanceId]; _application.OnSessionLogout(appSession, msg); } }
/// <summary> /// The OnSessionLogout callback is invoked by the underlying /// instance of a FIX session to notify the service that the /// session has logged out from the peer system. /// </summary> /// <param name="session"> /// The FIX session that is generating the callback. /// </param> /// <param name="msg"> /// The FIX logout message received from the peer. /// </param> public void OnSessionLogout(IVfxFixSession session, FixMessage msg) { lock (_synch) { // REC: The FIX session is no longer established. _fixEstablished = false; // REC: Forward the logout notification to the app: _fixApplication.OnSessionLogout(_appSession, msg); } }