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); }
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 }
public virtual void UpdatedManifestList(ManifestListUpdate listupdate) { throw new NotImplementedException(ErrorMessages.INVALID_FUNCTION); }