private async void UpdateWallpaperZoomedImage(Point?position = null) { if (_selectedWallpaper == null) { Log4NetService.Instance.GetLogger <MainWindow>() .Error($"{nameof(UpdateWallpaperZoomedImage)} was called, " + $"but {nameof(_selectedWallpaper)} is not defined"); return; } if (!_selectedWallpaper.IsFixed && !position.HasValue) { Log4NetService.Instance.GetLogger <MainWindow>() .Fatal($"call {nameof(UpdateWallpaperZoomedImage)} " + $"with position as null parameter [as UnFixedWallзaper]"); throw new ArgumentNullException(nameof(position)); } try { WallpaperZoomed.Source = _selectedWallpaper.IsFixed ? await _selectedWallpaper.GetFixedSignedImage(_wallpaperController.DefaultSignature) : await _selectedWallpaper.GetSignedImage(position.Value, _wallpaperController.DefaultSignature); } catch (Exception e) { Log4NetService.Instance.GetLogger <MainWindow>().Fatal(e); throw; } }