예제 #1
0
        public void OnLoad(string key, Action <bool, Exception> onLoad, SoundInfo info, Exception ex)
        {
            if (ex == null)
            {
                onLoad?.Invoke(false, ex);
                return;
            }
            Entry entry;

            lock (m_Cache)
            {
                if (m_Cache.TryGetValue(key, out entry))
                {
                    if (entry.Global || entry.Count > 0)
                    {
                        entry.Info = info;
                        onLoad?.Invoke(true, null);
                        return;
                    }
                }
            }
            onLoad?.Invoke(false, null);
        }
예제 #2
0
 public abstract Result Update(IPlayingList list, SoundInfo info);