/// <summary> /// Logout message requires that you also add code to onLogout method of the QuickFix implementation; /// Otherwise QuickFix will attempt to re-login. /// </summary> public void ttLogout() { try { QuickFix42.Logout lo = new QuickFix42.Logout(); //optional text field lo.set(new QuickFix.Text("Logout message sent")); QuickFix.Session.sendToTarget(lo, priceSessionID); QuickFix.Session.sendToTarget(lo, orderSessionID); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
public void RequestLogout(SessionID sessionId) { QuickFix42.Logout logout = new QuickFix42.Logout(); Session.sendToTarget(logout, sessionId); }