internal async Task<IList<ItemKey>> ExecutePutThingsAsync(CancellationToken cancelToken, RecordItem[] items) { items.ValidateRequired<RecordItem>("items"); ItemKeyList keyList = await Client.RecordMethods.PutThingsAsync<ItemKeyList>(m_recordRef, items, cancelToken); if (keyList == null || !keyList.HasKeys) { return null; } return keyList.Keys; }
public IAsyncOperation<ItemKey> PutBlobInItem(RecordItem item, BlobInfo blobInfo, IInputStream source) { item.ValidateRequired("item"); return AsyncInfo.Run( async cancelToken => { Blob blob = await UploadBlob(blobInfo, source).AsTask(cancelToken); item.AddOrUpdateBlob(blob); return await UpdateItemAsync(item).AsTask(cancelToken); } ); }