Example #1
0
        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);
        }
Example #2
0
        internal async Task <IList <ItemKey> > ExecutePutThingsRawAsync(CancellationToken cancelToken, string xml)
        {
            if (String.IsNullOrEmpty(xml))
            {
                throw new ArgumentNullException(xml);
            }

            ItemKeyList keyList =
                await Client.RecordMethods.PutThingsRawAsync <ItemKeyList>(m_recordRef, xml, cancelToken);

            if (keyList == null || !keyList.HasKeys)
            {
                return(null);
            }

            return(keyList.Keys);
        }