public void ReconcileEntitiesOfType(string entityType, IEnumerable <string> ids)
 {
     ChangesQueue.Enqueue(new EntityReconcileMessage
     {
         Reconcile = new EntityReconcileMessage.EntityReconcile
         {
             Type = entityType,
             Keys = new List <string>(ids)
         }
     });
 }
 public void SendEntityUpdate(UserEntity user)
 {
     //Use can use the same mechanism to send any entity type the system knows about, i.e. TimeTables
     ChangesQueue.Enqueue(new EntityWrapper <UserEntity>(user));
 }
 public void DeleteEntity(string entityType, string entityId)
 {
     ChangesQueue.Enqueue(new EntityDeleteMessage(entityType, entityId));
 }
 public void DeleteAllOfType(string entityType)
 {
     ChangesQueue.Enqueue(new EntityDeleteAllMessage(entityType));
 }