/// <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); }
/// <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); }
/// <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; }
///<summary> /// JSONProtocol Constructor ///</summary> public JSONSerializer(System.IO.Stream stream) : base(stream) { context = new JSONBaseContext(this); reader = new LookaheadReader(this); }