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());
            }
        }
Exemplo n.º 2
0
 protected override void Execute(object parameter)
 {
     if (parameter is IWatchHistory watchHistory)
     {
         _ = _watchHistoryManager.RemoveHistoryAsync(watchHistory);
     }
 }