async void OnResumingAsync(object sender, object e) { try { await ImageElementManager.UpdateSource(this); } catch (Exception exception) { Application.Current?.FindMauiContext()?.CreateLogger <ImageRenderer>()?.LogWarning(exception, "ImageSource failed to update after app resume"); } }
async void OnResumingAsync(object sender, object e) { try { await ImageElementManager.UpdateSource(this); } catch (Exception exception) { Log.Warning("Update image source after app resume", $"ImageSource failed to update after app resume: {exception.Message}"); } }
protected async Task UpdateSource() { await ImageElementManager.UpdateSource(this).ConfigureAwait(false); }