コード例 #1
0
        private void ApplyAction(StorageAction storageAction)
        {
            switch (storageAction.StorageActionType)
            {
            case StorageActionType.Add:
                _securityStorage.AddItems(storageAction.Entities);
                break;

            case StorageActionType.Remove:
                _securityStorage.RemoveItems(storageAction.Entities);
                break;

            case StorageActionType.Update:
                _securityStorage.UpdateItems(storageAction.Entities);
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }