예제 #1
0
 public void Save <TData>(TData data, string fileName) =>
 _fileProvider.Write(_serializationProvider.Serialize(data),
                     GetFilePath(fileName));
 public byte[] Serialize <T>(T data) =>
 _dataTransform.Apply(_baseProvider.Serialize(data));
 public void SetData <T>(string key, T data) =>
 SetBytes(key, _serializationProvider.Serialize(data));
예제 #4
0
 public static System.Threading.Tasks.Task <byte[]> SerializeFakeAsync <T>(
     this ISerializationProviderSync provider, T data) =>
 System.Threading.Tasks.Task.FromResult <byte[]>(provider.Serialize(data));