Ejemplo n.º 1
0
        public void Save(HttpRequestRecordCollection collection, string saveFileName)
        {
            DefaultBinarySerializer binarySerializer = new DefaultBinarySerializer();

            File.WriteAllBytes(saveFileName, binarySerializer.Serialize(collection));
        }
Ejemplo n.º 2
0
        public HttpRequestRecordCollection Load(string fileName)
        {
            DefaultBinarySerializer binarySerializer = new DefaultBinarySerializer();

            return(binarySerializer.Deserialize <HttpRequestRecordCollection>(File.ReadAllBytes(fileName)));
        }