// possibility to encrypt everything stored private ISerialize BuildSerializer() { var serializer = new JsonSerializer() as ISerialize; serializer = new GzipSerializer(serializer); return(new RijndaelSerializer(serializer, _EncryptionKey)); }
private ISerialize BuildSerializer() { var serializer = new JsonSerializer() as ISerialize; serializer = new GzipSerializer(serializer); return new RijndaelSerializer(serializer, _encryptionKey); }
private static ISerialize BuildSerializer() { var serializer = new JsonSerializer() as ISerialize; serializer = new GzipSerializer(serializer); return serializer; }
private void ConfigurePersistentSerializer() { var serializer = (ISerialize)new JsonSerializer(); if (_shouldCompress) serializer = new GzipSerializer(serializer); if (_encryptionKey != null) serializer = new RijndaelSerializer(serializer, _encryptionKey); _documentSerializer = new ByteStreamDocumentSerializer(serializer); }