コード例 #1
0
 ///<summary>
 /// TJSONProtocol Constructor
 ///</summary>
 public TJSONProtocol(TTransport trans)
     : base(trans)
 {
     context = new JSONBaseContext(this);
     reader = new LookaheadReader(this);
 }
コード例 #2
0
 ///<summary>
 /// Push a new JSON context onto the stack.
 ///</summary>
 protected void PushContext(JSONBaseContext c)
 {
     contextStack.Push(context);
     context = c;
 }
コード例 #3
0
 ///<summary>
 /// Pop the last JSON context off the stack
 ///</summary>
 protected void PopContext()
 {
     context = contextStack.Pop();
 }
コード例 #4
0
 /// <summary>
 /// Pop the last JSON context off the stack
 /// </summary>
 protected void PopContext()
 {
     context = contextStack.Pop();
 }
コード例 #5
0
ファイル: TJSONProtocol.cs プロジェクト: joycgj/thrift-0.9.2
 /// <summary>
 ///     TJsonProtocol Constructor
 /// </summary>
 public TJsonProtocol(TTransport trans)
     : base(trans)
 {
     Context = new JSONBaseContext(this);
     Reader  = new LookaheadReader(this);
 }
コード例 #6
0
 /// <summary>
 /// Push a new JSON context onto the stack.
 /// </summary>
 protected void PushContext(JSONBaseContext c)
 {
     contextStack.Push(context);
     context = c;
 }
コード例 #7
0
ファイル: TJSONProtocol.cs プロジェクト: drashtived03/gokit
 /// <summary>
 ///     Push a new JSON context onto the stack.
 /// </summary>
 protected void PushContext(JSONBaseContext c)
 {
     ContextStack.Push(Context);
     Context = c;
 }
コード例 #8
0
ファイル: JSONSerializer.cs プロジェクト: FloodProject/flood
 ///<summary>
 /// JSONProtocol Constructor
 ///</summary>
 public JSONSerializer(System.IO.Stream stream)
     : base(stream)
 {
     context = new JSONBaseContext(this);
     reader = new LookaheadReader(this);
 }
コード例 #9
0
 /// <summary>
 ///    Resets the context stack to pristine state. Allows for reusal of the protocol
 ///    even in cases where the protocol instance was in an undefined state due to
 ///    dangling/stale/obsolete contexts
 /// </summary>
 private void resetContext()
 {
     ContextStack.Clear();
     Context = new JSONBaseContext(this);
 }
コード例 #10
0
ファイル: JSONSerializer.cs プロジェクト: aldyjepara/flood
 ///<summary>
 /// JSONProtocol Constructor
 ///</summary>
 public JSONSerializer(System.IO.Stream stream)
     : base(stream)
 {
     context = new JSONBaseContext(this);
     reader  = new LookaheadReader(this);
 }