public object Call(object seq) { var resp = BinFormater.Read(new MemoryStream(Transfering.Send(BinFormater.Write(seq, _queryInterface.GetSymbolTable()).ToArray())), _queryInterface.GetSymbolTable()); if (resp.Car() is SpecialMessage) { OnSpecialMessageEvt(resp.Car() as SpecialMessage, seq); return(null); } return(resp?.Car()); }
public object Call(object seq) { if (_sendSync.Wait(5000)) { var resp = BinFormater.Read(new MemoryStream(_transfering.Send(BinFormater.Write(seq, _symbolTable).ToArray())), _symbolTable); if (resp.Car() is SpecialMessage) { OnSpecialMessageEvt(resp.Car() as SpecialMessage, seq); return(null); } return(resp.Car()); } else { // TODO connection was broken Console.WriteLine("Call error"); OnConnectionError(new Exception("Call error")); return(null); } }
public object Call(object seq) { var resp = BinFormater.Read(new MemoryStream(Transfering.Send(BinFormater.Write(seq).ToArray()))); return(resp?.Car()); }
public object Call(object seq) { var resp = BinFormater.Read(new MemoryStream(Transfering.Send(BinFormater.Write(seq, _queryInterface.GetSymbolTable()).ToArray())), _queryInterface.GetSymbolTable()); return(resp?.Car()); }