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))); }
public void EndDeleteMessage(IAsyncResult asyncResult) { CloudQueue queue = (CloudQueue)NestedAsyncHelper.GetExtraState(asyncResult); queue.EndDeleteMessage(NestedAsyncHelper.UnwrapAsyncResult(asyncResult)); }