private void ProcessSendReconnect(int conId, byte[] arrMsgBody) { CSendReconnect sendRecon = CUtilProto.DeserializeProto <CSendReconnect>(arrMsgBody); Log("Process sending reconnect"); _dealingServer.OnTrdMgrSentReconnect(sendRecon.ConnectionId); }
public void SendReconnect(object sender, ExecutedRoutedEventArgs e) { CSendReconnect sendRec = (CSendReconnect)e.Parameter; int conId = GetConnId(sendRec.StockExchId); _commuTradeManager.SendDataToServer(conId, sendRec, enmTradingEvent.SendReconnect);; }
private void ButtonReconnect_Click(object sender, RoutedEventArgs e) { CSendReconnect sendReconnect = new CSendReconnect { StockExchId = CodesStockExch._04_CryptoBitfinex, ConnectionId = 1 }; CCommands.CmdReconnect.Execute(sendReconnect, this); }