Exemplo n.º 1
0
 public SessionData(Session oS)
 {
     MemoryStream oFS = new MemoryStream();
     oS.WriteRequestToStream(false, true, oFS);
     this.arrRequest = oFS.ToArray();
     oFS = new MemoryStream();
     oS.WriteResponseToStream(oFS, false);
     this.arrResponse = oFS.ToArray();
     oFS = new MemoryStream();
     oS.WriteMetadataToStream(oFS);
     this.arrMetadata = oFS.ToArray();
     oFS = new MemoryStream();
     oS.WriteWebSocketMessagesToStream(oFS);
     this.arrWebSocketMessages = oFS.ToArray();
 }