This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
Need to expose blob metadata in GetAsync #1
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Problem
This code hides away the internal CloudBlockBlob metadata.
Such information might be useful for consumers, for example
Properties.ContentType
.This came up because we were trying to assert that
.AddAsync
was being called with the correct content type in a test. To assert that, we needed to verify the metadata in.GetAsync
, but it's being hidden away.Suggestion
Instead of returning
T
inGetAsync
, return a class that hasT
, but also the other attributes, in case the consumer wants it.e.g
The consumer might need other metadata in
CloudBlockBlob
, but maybe we start with this?The text was updated successfully, but these errors were encountered: