public DefaultAtomicStorageStrategy(string folderForSingleton, Func <Type, string> nameForSingleton, Func <Type, string> folderForEntity, Func <Type, object, string> nameForEntity, IAtomicStorageSerializer serializer) { _serializer = serializer; _nameForEntity = nameForEntity; _folderForEntity = folderForEntity; _nameForSingleton = nameForSingleton; _folderForSingleton = folderForSingleton; }
public DefaultAtomicStorageStrategy(Type[] entityTypes, Type[] singletonTypes, string folderForSingleton, Func <Type, string> nameForSingleton, Func <Type, string> folderForEntity, Func <Type, object, string> nameForEntity, IAtomicStorageSerializer serializer) { _entityTypes = entityTypes; _serializer = serializer; _nameForEntity = nameForEntity; _folderForEntity = folderForEntity; _nameForSingleton = nameForSingleton; _folderForSingleton = folderForSingleton; _singletonTypes = singletonTypes; }
public void CustomSerializer(Action<object, Type, Stream> serializer, Func<Type, Stream, object> deserializer) { _serializer = new AtomicStorageSerializerWithDelegates(serializer, deserializer); }
public void CustomSerializer(IAtomicStorageSerializer serializer) { _serializer = serializer; }
public void CustomSerializer(Action <object, Type, Stream> serializer, Func <Type, Stream, object> deserializer) { _serializer = new AtomicStorageSerializerWithDelegates(serializer, deserializer); }