Ejemplo n.º 1
0
            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());
            }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
            public object Call(object seq)
            {
                var resp = BinFormater.Read(new MemoryStream(Transfering.Send(BinFormater.Write(seq).ToArray())));

                return(resp?.Car());
            }
Ejemplo n.º 4
0
            public object Call(object seq)
            {
                var resp = BinFormater.Read(new MemoryStream(Transfering.Send(BinFormater.Write(seq, _queryInterface.GetSymbolTable()).ToArray())), _queryInterface.GetSymbolTable());

                return(resp?.Car());
            }