public PacketContent(JsonContent jsonContent)
 {
     this.JsonContent = jsonContent;
     this.ContentType = ContentType.Json;
 }
 public static SerializedInfo CreateForJson(Session session, string clientInvokeId, JsonContent content)
 {
     SerializedInfo target = new SerializedInfo()
     {
         Content=new PacketContent(content),
         ClientInfo=new ClientInfo(clientInvokeId,session)
     };
     return target;
 }
 private static SerializedInfo ParseJsonPacket(Session session, string content)
 {
     JsonContent jsonContent = new JsonContent(request:JObject.Parse(content));
     var clientInvokeIdProperty = jsonContent.Request[RequestConstants.InvokeIdNodeName];
     string clientInvokeId = clientInvokeIdProperty == null ? string.Empty : clientInvokeIdProperty.ToString();
     return SerializedInfo.CreateForJson(session, clientInvokeId, jsonContent);
 }