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