示例#1
0
        public IEnumerable <CloudQueueMessage> EndGetMessages(IAsyncResult asyncResult)
        {
            CloudQueue queue = (CloudQueue)NestedAsyncHelper.GetExtraState(asyncResult);
            IEnumerable <CloudQueueMessage> msgs = queue.EndGetMessages(NestedAsyncHelper.UnwrapAsyncResult(asyncResult));

            return(msgs.Select(msg => HSMessageWrapper.FromCloudQueueMessage(msg, queue)));
        }
示例#2
0
        public void EndDeleteMessage(IAsyncResult asyncResult)
        {
            CloudQueue queue = (CloudQueue)NestedAsyncHelper.GetExtraState(asyncResult);

            queue.EndDeleteMessage(NestedAsyncHelper.UnwrapAsyncResult(asyncResult));
        }