Exemple #1
0
 /// <summary>
 /// Creates a new BlobEntry to hold the given pageBlob. The pageBlob must already be created.
 /// </summary>
 /// <param name="pageBlob"></param>
 /// <param name="azureStorageDevice"></param>
 public BlobEntry(CloudPageBlob pageBlob, AzureStorageDevice azureStorageDevice)
 {
     this.PageBlob           = pageBlob;
     this.azureStorageDevice = azureStorageDevice;
     if (pageBlob == null)
     {
         // Only need to allocate a queue when we potentially need to asynchronously create a blob
         this.pendingWrites = new ConcurrentQueue <Action <CloudPageBlob> >();
         this.waitingCount  = 0;
     }
 }
Exemple #2
0
 /// <summary>
 /// Creates a new BlobEntry, does not initialize a page blob. Use <see cref="CreateAsync(long, CloudPageBlob)"/>
 /// for actual creation.
 /// </summary>
 public BlobEntry(AzureStorageDevice azureStorageDevice) : this(null, azureStorageDevice)
 {
 }