BB.UI.Web.MVC.Controllers.Utils.PlaylistHub.SyncLiveWhenPlaying C# (CSharp) Метод

SyncLiveWhenPlaying() публичный Метод

public SyncLiveWhenPlaying ( string groupName, CurrentPlayingViewModel track, float duration ) : void
groupName string
track BB.UI.Web.MVC.Models.CurrentPlayingViewModel
duration float
Результат void
        public void SyncLiveWhenPlaying(string groupName, CurrentPlayingViewModel track, float duration)
        {
            var removeKeys = new List<string>();
            foreach (var key in lastJoiners.Where(p => p.Value == groupName).Select(p => p.Key))
            {
                Clients.Client(key).playLive(track, (int)duration);
                removeKeys.Add(key);
            }
            foreach (var removeKey in removeKeys)
            {
                lastJoiners.Remove(removeKey);
            }
        }