/// <summary> /// Ends an asynchronous operation to return a result segment containing a collection of blob items /// in the container. /// </summary> /// <param name="asyncResult">An <see cref="IAsyncResult"/> that references the pending asynchronous operation.</param> /// <returns>A result segment containing objects that implement <see cref="IListBlobItem"/>.</returns> public BlobResultSegment EndListBlobsSegmented(IAsyncResult asyncResult) { ChainedAsyncResult <BlobResultSegment> result = (ChainedAsyncResult <BlobResultSegment>)asyncResult; result.End(); return(result.Result); }
/// <summary> /// Waits for the pending asynchronous write to complete. /// </summary> /// <param name="asyncResult">The reference to the pending asynchronous request to finish.</param> public override void EndWrite(IAsyncResult asyncResult) { ChainedAsyncResult <NullType> chainedResult = (ChainedAsyncResult <NullType>)asyncResult; chainedResult.End(); if (this.lastException != null) { throw this.lastException; } }
/// <summary> /// Waits for the pending asynchronous read to complete. /// </summary> /// <param name="asyncResult">The reference to the pending asynchronous request to finish.</param> /// <returns>The total number of bytes read into the buffer. This can be /// less than the number of bytes requested if that many bytes are not /// currently available, or zero (0) if the end of the stream has been reached.</returns> public override int EndRead(IAsyncResult asyncResult) { ChainedAsyncResult <int> chainedResult = (ChainedAsyncResult <int>)asyncResult; chainedResult.End(); if (this.lastException != null) { throw this.lastException; } return(chainedResult.Result); }
void ICommunicationObject.EndOpen(IAsyncResult result) { ChainedAsyncResult.End(result); }
protected override void OnEndClose(IAsyncResult result) { ChainedAsyncResult.End(result); }