public void Disconnect() { Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} started", MethodInfo.GetCurrentMethod().GetFullName())); }); try { if (CashAppContext != null) { CashAppContext.Logout(); } } catch (Exception ex) { TBYAppContextFIXDisconnectException tex = new TBYAppContextFIXDisconnectException("5029", MethodBase.GetCurrentMethod().GetFullName(), "Hisse FIX bağlantısı sonlandırılırken hata oluştu", ex); Exception(tex); } try { if (VIOPAppContext != null) { VIOPAppContext.Logout(); } } catch (Exception ex) { TBYException tex = new TBYAppContextFIXDisconnectException("5029", MethodBase.GetCurrentMethod().GetFullName(), "VIOP FIX bağlantısı sonlandırılırken hata oluştu", ex); Exception(tex); } Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} end", MethodInfo.GetCurrentMethod().GetFullName())); }); }
public void CashDisconnect() { Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} started", MethodInfo.GetCurrentMethod().GetFullName())); }); CashAppContext.Logout(); Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} end", MethodInfo.GetCurrentMethod().GetFullName())); }); }
public void CashConnectOrDisconnect() { Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} started", MethodInfo.GetCurrentMethod().GetFullName())); }); if (CanLogout(CashAppContext)) { CashAppContext.Logout(); } else if (CanLogon(CashAppContext)) { CashAppContext.Logon(); } Debug.DebugHelper.Run(() => { Debug.DebugHelper.Log(String.Format("{0} end", MethodInfo.GetCurrentMethod().GetFullName())); }); }