示例#1
0
 public static Task <string> Store(this IDataCache storage, Action <Stream> writer)
 {
     return(storage.Store(stream => {
         writer(stream);
         return Task.CompletedTask;
     }));
 }
示例#2
0
 private Task <string> StoreContent <T>(T content)
 {
     return(_storage.Store(stream => Serializer.Serialize(stream, content)));
 }