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
Attempt to access DiskCache property from ImageService
Expected Behavior
DiskCache is a valid object. Also that await ImageService.InvalidateCacheAsync(FFImageLoading.Cache.CacheType.All); could be called to invalidate both memory and disk cache.
Description
DiskCache is null within the ImageService object.
Steps to Reproduce
Attempt to access DiskCache property from ImageService
Expected Behavior
DiskCache is a valid object. Also that await ImageService.InvalidateCacheAsync(FFImageLoading.Cache.CacheType.All); could be called to invalidate both memory and disk cache.
Actual Behavior
DiskCache object is null
Basic Information
Reproduction Link / Code
`
private IImageService imageService = Application.Current.MainPage.Handler.MauiContext.Services.GetService<IImageService>();
//...
imageService.InvalidateMemoryCache(); // This works fine
await imageService.DiskCache..ClearAsync(); // This crashes because DiskCache is null
`
The text was updated successfully, but these errors were encountered: