You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: I want to use the AsyncImage in an app that currently offers custom cache management by content. That includes matching the file names found in the image cache folder with their original http/s URLs referenced in the content. That way the app identifies caches as either belonging to a piece of known content or being loose and obsolete.
Looking into the source I found CachBase<T>.GetCacheFileName(Uri uri) which would be exactly what I need to translate a URL into a cache file name - but it's private in an internal generic class.
Would you consider making this API public?
Making both CachBase<T> and GetCacheFileName(Uri uri) in it public should be enough.
If you additionally moved GetCacheFileName(Uri uri) into a public helper type (since it is static) or a new non-generic super-class of CachBase<T>, that would make it easier to call, i.e. CacheHelper.GetCacheFileName(Uri uri) or CachBase.GetCacheFileName(Uri uri) instead of e.g. CachBase<Bitmap>.GetCacheFileName(Uri uri).
Thank you for your consideration <3
The text was updated successfully, but these errors were encountered:
Background: I want to use the
AsyncImage
in an app that currently offers custom cache management by content. That includes matching the file names found in the image cache folder with their original http/s URLs referenced in the content. That way the app identifies caches as either belonging to a piece of known content or being loose and obsolete.Looking into the source I found
CachBase<T>.GetCacheFileName(Uri uri)
which would be exactly what I need to translate a URL into a cache file name - but it's private in an internal generic class.Would you consider making this API public?
Making both
CachBase<T>
andGetCacheFileName(Uri uri)
in itpublic
should be enough.If you additionally moved
GetCacheFileName(Uri uri)
into a public helper type (since it is static) or a new non-generic super-class ofCachBase<T>
, that would make it easier to call, i.e.CacheHelper.GetCacheFileName(Uri uri)
orCachBase.GetCacheFileName(Uri uri)
instead of e.g.CachBase<Bitmap>.GetCacheFileName(Uri uri)
.Thank you for your consideration <3
The text was updated successfully, but these errors were encountered: