protected override async void Execute(object parameter) { var currentMethod = System.Reflection.MethodBase.GetCurrentMethod(); //Microsoft.AppCenter.Analytics.Analytics.TrackEvent($"{currentMethod.DeclaringType.Name}#{currentMethod.Name}"); if (parameter is IVideoContent watchHistory) { _ = _watchHistoryManager.RemoveHistoryAsync(watchHistory); } else if (parameter is IList histories) { await _watchHistoryManager.RemoveHistoryAsync(histories.Cast <IVideoContent>().ToList()); } }
protected override void Execute(object parameter) { if (parameter is IWatchHistory watchHistory) { _ = _watchHistoryManager.RemoveHistoryAsync(watchHistory); } }