public async Task RemoveEmptyAsync(params string[] defUrls) { foreach (var defUrl in defUrls) { await _assetTableStorage.DeleteAsync(AssetDefinitionDefinitionEntity.CreateEmpty(defUrl)); } }
public async Task UpdateAssetAsync(IAssetDefinition assetDefinition) { await _assetTableStorage.InsertOrReplaceAsync(AssetDefinitionDefinitionEntity.Create(assetDefinition)); }
public async Task InsertEmptyAsync(string defUrl) { await _assetTableStorage.InsertOrReplaceAsync(AssetDefinitionDefinitionEntity.CreateEmpty(defUrl)); }
public async Task <IEnumerable <IAssetDefinition> > GetAllAsync() { return(await _assetTableStorage.GetDataAsync(AssetDefinitionDefinitionEntity.GeneratePartitionKey())); }
public async Task DeleteEmptyAssets() { var empty = await _assetTableStorage.GetDataAsync(AssetDefinitionDefinitionEntity.GenerateEmptyPartitionKey()); await _assetTableStorage.DeleteAsync(empty); }