public IAsyncResult BeginPutPage(IBlobRegion blobRegion, Stream inputStream, CrcReaderStream crcReaderStream, IBlobObjectCondition condition, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("IndexBlobObject.PutPage", callback, state); asyncIteratorContext.Begin(this.PutPageImpl(blobRegion, inputStream, crcReaderStream, condition, asyncIteratorContext)); return(asyncIteratorContext); }
public IAsyncResult BeginAppendBlock(long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, IBlobObjectCondition condition, long?maxBlobSizeCondition, long?blockAppendPositionCondition, AsyncCallback callback, object state) { AsyncIteratorContext <IAppendBlockResult> asyncIteratorContext = new AsyncIteratorContext <IAppendBlockResult>("RealBlobObject.AppendBlock", callback, state); asyncIteratorContext.Begin(this.AppendBlockImpl(contentLength, inputStream, crcReaderStream, condition, maxBlobSizeCondition, blockAppendPositionCondition, asyncIteratorContext)); return(asyncIteratorContext); }
public IAsyncResult BeginPutBlock(byte[] blockIdentifier, long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, byte[] contentMD5, bool isLargeBlockBlobRequest, IBlobObjectCondition condition, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("RealBlobObject.PutBlock", callback, state); asyncIteratorContext.Begin(this.PutBlockImpl(blockIdentifier, contentLength, inputStream, crcReaderStream, contentMD5, isLargeBlockBlobRequest, condition, asyncIteratorContext)); return(asyncIteratorContext); }
private IEnumerator <IAsyncResult> AppendBlockImpl(long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, IBlobObjectCondition condition, long?conditionalMaxBlobSize, long?conditionalAppendBlockPosition, AsyncIteratorContext <IAppendBlockResult> context) { IAsyncResult asyncResult; try { asyncResult = ((IListBlobObject)this.blob).BeginAppendBlock(contentLength, inputStream, crcReaderStream, condition, conditionalMaxBlobSize, conditionalAppendBlockPosition, context.GetResumeCallback(), context.GetResumeState("RealBlobObject.AppendBlockImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { ((IListBlobObject)this.blob).EndAppendBlock(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
private IEnumerator <IAsyncResult> PutBlockImpl(byte[] blockIdentifier, long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, byte[] contentMD5, bool isLargeBlockBlobRequest, IBlobObjectCondition condition, AsyncIteratorContext <NoResults> context) { IAsyncResult asyncResult; try { asyncResult = ((IListBlobObject)this.blob).BeginPutBlock(blockIdentifier, contentLength, inputStream, crcReaderStream, contentMD5, isLargeBlockBlobRequest, condition, context.GetResumeCallback(), context.GetResumeState("RealBlobObject.PutBlockImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { ((IListBlobObject)this.blob).EndPutBlock(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
private IEnumerator <IAsyncResult> PutPageImpl(IBlobRegion blobRegion, Stream inputStream, CrcReaderStream crcReaderStream, IBlobObjectCondition condition, AsyncIteratorContext <NoResults> context) { IAsyncResult asyncResult; try { asyncResult = ((IIndexBlobObject)this.blob).BeginPutPage(blobRegion, inputStream, crcReaderStream, Helpers.Convert(condition), context.GetResumeCallback(), context.GetResumeState("IndexBlobObject.PutPageImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { ((IIndexBlobObject)this.blob).EndPutPage(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
private IEnumerator <IAsyncResult> PutBlobImpl(string contentType, long contentLength, long?maxBlobSize, byte[] serviceMetadata, byte[] applicationMetadata, Stream inputStream, CrcReaderStream crcReaderStream, byte[] contentMD5, bool invokeGeneratePutBlobServiceMetadata, GeneratePutBlobServiceMetadata generatePutBlobServiceMetadata, bool isLargeBlockBlobRequest, bool is8TBPageBlobAllowed, ISequenceNumberUpdate sequenceNumberUpdate, OverwriteOption overwriteOption, IBlobObjectCondition condition, AsyncIteratorContext <NoResults> context) { IAsyncResult asyncResult; if (contentLength < (long)0) { throw new ArgumentOutOfRangeException("contentLength", "contentLength must be >= 0"); } try { asyncResult = this.blob.BeginPutBlob(contentType, contentLength, maxBlobSize, serviceMetadata, applicationMetadata, inputStream, crcReaderStream, contentMD5, invokeGeneratePutBlobServiceMetadata, generatePutBlobServiceMetadata, isLargeBlockBlobRequest, is8TBPageBlobAllowed, sequenceNumberUpdate, overwriteOption, Helpers.Convert(condition), context.GetResumeCallback(), context.GetResumeState("RealBlobObject.PutBlobImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { this.blob.EndPutBlob(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
public IAsyncResult BeginPutBlob(string contentType, long contentLength, long?maxBlobSize, byte[] serviceMetadata, byte[] applicationMetadata, Stream inputStream, CrcReaderStream crcReaderStream, byte[] contentMD5, bool invokeGeneratePutBlobServiceMetadata, GeneratePutBlobServiceMetadata generatePutBlobServiceMetadata, bool isLargeBlockBlobRequest, bool is8TBPageBlobAllowed, ISequenceNumberUpdate sequenceNumberUpdate, OverwriteOption overwriteOption, IBlobObjectCondition condition, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("RealBlobObject.PutBlob", callback, state); asyncIteratorContext.Begin(this.PutBlobImpl(contentType, contentLength, maxBlobSize, serviceMetadata, applicationMetadata, inputStream, crcReaderStream, contentMD5, invokeGeneratePutBlobServiceMetadata, generatePutBlobServiceMetadata, isLargeBlockBlobRequest, is8TBPageBlobAllowed, sequenceNumberUpdate, overwriteOption, condition, asyncIteratorContext)); return(asyncIteratorContext); }
public IAsyncResult BeginAppendBlock(long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, IBlobObjectCondition condition, long?conditionalMaxBlobSize, long?conditionalAppendBlockPosition, AsyncCallback callback, object state) { throw new NotImplementedException(); }
IAsyncResult Microsoft.Cis.Services.Nephos.Common.Storage.IListBlobObject.BeginPutBlock(byte[] blockIdentifier, long contentLength, Stream inputStream, CrcReaderStream crcReaderStream, byte[] contentMD5, bool isLargeBlockBlobRequest, IBlobObjectCondition condition, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("DbListBlobObject.PutBlock", callback, state); asyncIteratorContext.Begin(this.PutBlockImpl(blockIdentifier, contentLength, inputStream, contentMD5, isLargeBlockBlobRequest, condition, asyncIteratorContext)); return(asyncIteratorContext); }