Example #1
0
        private void PostSaveChanges()
        {
            foreach (var databaseEntityAddedEventArgs in addedEntites)
            {
                EntityAdded?.Invoke(this, databaseEntityAddedEventArgs);
            }

            foreach (var databaseEntityModifiedEventArgs in modifiedEntites)
            {
                EntityModified?.Invoke(this, databaseEntityModifiedEventArgs);
            }

            foreach (var databaseEntityRemovedEventArgs in removedEntites)
            {
                EntityRemoved?.Invoke(this, databaseEntityRemovedEventArgs);
            }

            addedEntites.Clear();
            modifiedEntites.Clear();
            removedEntites.Clear();
        }
Example #2
0
 void OnEntityModified(T entity, ObjectAction action)
 {
     EntityModified?.Invoke(this, new EntityEventArgs(entity, action, Owner.State));
 }
Example #3
0
 private void OnEntityModified(EntityModified e)
 {
     Bindings.Apply(e.Entity);
     SaveGameBindings();
     //SaveToAzureTableStorage(e.Entity);
 }