private void AddNewAction(StorageActionType actionType, IEnumerable <IStorageEntity> entities) { StorageAction storageAction = new StorageAction(actionType, entities); if (_isSuspended) { _storageActions.Enqueue(storageAction); } else { ApplyAction(storageAction); } }
public StorageAction(StorageActionType storageActionType, IEnumerable <IStorageEntity> entities) { StorageActionType = storageActionType; Entities = entities; }
private void AddNewAction(StorageActionType actionType, IStorageEntity entity) { AddNewAction(actionType, Enumerable.Repeat(entity, 1)); }