public override void Stop() { var items = playerQueue.ToList(); foreach (var item in items) { item.Value.Stop(); } }
protected override void Dispose(bool disposing) { if (!disposing) { return; } var currentViews = CurrentViews.ToList(); CurrentViews.Clear(); currentViews.ForEach(x => x.Value?.Dispose()); base.Dispose(disposing); }