Esempio n. 1
0
        public void UpdateManifestList(List <String> manifestDelta, Boolean isAddingToList)
        {
            ManifestListUpdateState state = ManifestListUpdateState.Delete;

            if (isAddingToList)
            {
                state = ManifestListUpdateState.Add;
            }

            ManifestListUpdate listUpdate = new ManifestListUpdate(manifestDelta, state);

            List <String> callbacks = new List <String>();

            lock (m_ClientListLock)
            {
                foreach (String awsId in m_Callbacks.Keys)
                {
                    try
                    {
                        m_Callbacks[awsId].Callback.UpdatedManifestList(listUpdate);
                    }
                    catch (Exception)
                    {
                        callbacks.Add(awsId);
                    }
                }
            }

            RemoveCallBacks(callbacks);
        }
Esempio n. 2
0
        public void UpdatedManifestList(ManifestListUpdate listUpdate)
        {
            if (listUpdate.State == ManifestListUpdateState.Add)
            {
                foreach (String manifestItem in listUpdate.List)
                {
                    m_ManifestList.Add(manifestItem);
                }
            }
            else if (listUpdate.State == ManifestListUpdateState.Delete)
            {
                foreach (String manifest in listUpdate.List)
                {
                    m_ManifestList.Remove(manifest);
                }
            }

            //TODO: Fire Event Here
        }
Esempio n. 3
0
 public virtual void UpdatedManifestList(ManifestListUpdate listupdate)
 {
     throw new NotImplementedException(ErrorMessages.INVALID_FUNCTION);
 }