Esempio n. 1
0
        internal ItemDataBlob EnsureBlobData()
        {
            if (m_blobs == null)
            {
                m_blobs = new ItemDataBlob();
            }

            return(m_blobs);
        }
Esempio n. 2
0
        public IAsyncAction RefreshBlobDataAsync(IRecord record)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            return(AsyncInfo.Run(
                       async cancelToken =>
            {
                RecordItem item = await record.GetItemAsync(Key, ItemSectionType.Blobs).AsTask(cancelToken);
                if (item != null)
                {
                    m_blobs = item.m_blobs;
                }
            }));
        }
Esempio n. 3
0
        internal ItemDataBlob EnsureBlobData()
        {
            if (m_blobs == null)
            {
                m_blobs = new ItemDataBlob();
            }

            return m_blobs;
        }
Esempio n. 4
0
        public IAsyncAction RefreshBlobDataAsync(IRecord record)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            return AsyncInfo.Run(
                async cancelToken =>
                      {
                          RecordItem item = await record.GetItemAsync(Key, ItemSectionType.Blobs).AsTask(cancelToken);
                          if (item != null)
                          {
                              m_blobs = item.m_blobs;
                          }
                      });
        }