public override void Stop()
        {
            var items = playerQueue.ToList();

            foreach (var item in items)
            {
                item.Value.Stop();
            }
        }
Example #2
0
        protected override void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }
            var currentViews = CurrentViews.ToList();

            CurrentViews.Clear();
            currentViews.ForEach(x => x.Value?.Dispose());
            base.Dispose(disposing);
        }