Exemplo n.º 1
0
        /// <summary>
        ///     TJsonProtocol Constructor
        /// </summary>
        public TJsonProtocol(TClientTransport trans)
            : base(trans)
        {
            //throw new NotImplementedException("TJsonProtocol is not fully ready for usage");

            Context = new JsonBaseContext(this);
            Reader  = new LookaheadReader(this);
        }
Exemplo n.º 2
0
 /// <summary>
 /// TJSONProtocol Constructor
 /// </summary>
 public TJSONProtocol(TTransport trans)
     : base(trans)
 {
     context = new JSONBaseContext(this);
     reader  = new LookaheadReader(this);
 }
 ///<summary>
 /// TJSONProtocol Constructor
 ///</summary>
 public TJSONProtocol(TTransport trans)
     : base(trans)
 {
     context = new JSONBaseContext(this);
     reader = new LookaheadReader(this);
 }
 ///<summary>
 /// TJSONProtocol Constructor
 ///</summary>
 public TJSONSerializer()
 {
     context = new JSONBaseContext(this);
     reader  = new LookaheadReader(this);
 }
Exemplo n.º 5
0
 /// <summary>
 ///     TJsonProtocol Constructor
 /// </summary>
 public TJsonProtocol(TClientTransport trans)
     : base(trans)
 {
     Context = new JSONBaseContext(this);
     Reader  = new LookaheadReader(this);
 }
 private bool isAtEndOfStream(LookaheadReader reader)
 {
     bool result = false;
     try
     {
         reader.Peek();
     }
     catch (TTransportException e)
     {
         if (e.Type == TTransportException.ExceptionType.EndOfFile)
         {
             //Console.WriteLine("Reached End of Stream");
             result = true;
         }
         else
         {
             throw e;
         }
     }
     return result;
 }
Exemplo n.º 7
0
 ///<summary>
 /// JSONProtocol Constructor
 ///</summary>
 public JSONSerializer(System.IO.Stream stream)
     : base(stream)
 {
     context = new JSONBaseContext(this);
     reader = new LookaheadReader(this);
 }
Exemplo n.º 8
0
        /// <summary>
        ///     TJsonProtocol Constructor
        /// </summary>
        public TJsonProtocol(TClientTransport trans)
            : base(trans)
        {
            //throw new NotImplementedException("TJsonProtocol is not fully ready for usage");

            Context = new JsonBaseContext(this);
            Reader = new LookaheadReader(this);
        }
Exemplo n.º 9
0
 ///<summary>
 /// JSONProtocol Constructor
 ///</summary>
 public JSONSerializer(System.IO.Stream stream)
     : base(stream)
 {
     context = new JSONBaseContext(this);
     reader  = new LookaheadReader(this);
 }