/// <summary> /// The OnSessionLogon callback method is invoked by an /// instance of a session when it completes a logon 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 logon message (request or response) that was /// received from the peer session. /// </param> public void OnSessionLogon(IVfxFixSession session, FixMessage msg) { // REC: Forward the callback to the appropriate method // on the application's callback interface: if (_mapAppSessions.ContainsKey(session.InstanceId)) { IVfxFixAppSession appSession = _mapAppSessions[session.InstanceId]; _application.OnSessionLogon(appSession, msg); } }
/// <summary> /// The OnSessionLogon callback is invoked by the underlying /// instance of a FIX session to notify the service that the /// session has completed a FIX logon with the peer. /// </summary> /// <param name="session"> /// The FIX session that is generating the callback. /// </param> /// <param name="msg"> /// The FIX logon message received from the peer. /// </param> public void OnSessionLogon(IVfxFixSession session, FixMessage msg) { lock (_synch) { // REC: The FIX session has been established. _fixEstablished = true; // REC: Forward the logon notification to the app: _fixApplication.OnSessionLogon(_appSession, msg); } }