Source code update instructions

Apr 5, 2016 at 3:53 PM
The latest version of the Azure SDK has made some dependencies for this project outdated. Here is what you need to get it working again.

In the Nuget Package Manager Console run
PM> Install-Package WindowsAzure.Storage

Open up the solution references and remove the following assemblies
Microsoft.WindowsAzure.StorageClient
Microsoft.WindowsAzure.Configuration

Code Changes

WorkerManager.CS (Line 4)
//using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure.Storage;
WorkerManager.CS (Line 235)
//containerReference.CreateIfNotExist();
containerReference.CreateIfNotExists();
WorkerManager.CS (Line 244
//blobReference.Attributes.Properties.Length
blobReference.Properties.Length
WorkerManager.CS (Line 295)
//blobReference.UploadFile(job.File.FullFilePath);
var blockBlobReference = containerReference.GetBlockBlobReference(job.BlobName);
using (var fileStream = System.IO.File.OpenRead(job.File.FullFilePath))
{
    blockBlobReference.UploadFromStream(fileStream);
}
WorkerManager.CS (Line 299)
//blobReference.DownloadToFile(job.File.FullFilePath);
blobReference.DownloadToFile(job.File.FullFilePath, FileMode.OpenOrCreate);
BlobTransferHelper (Line 13)
//using Microsoft.WindowsAzure.StorageClient;
//using Microsoft.WindowsAzure.StorageClient.Protocol;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Blob;
BlobTransferHelper (Line 50)
//public void UploadBlobAsync(Microsoft.WindowsAzure.StorageClient.CloudBlob blob, string LocalFile)
public void UploadBlobAsync(Microsoft.WindowsAzure.Storage.Blob.CloudBlob blob, string LocalFile)
BlobTransferHelper (Line 52)
//Microsoft.WindowsAzure.StorageCredentialsAccountAndKey account = blob.ServiceClient.Credentials as Microsoft.WindowsAzure.StorageCredentialsAccountAndKey;
//ICloudBlob blob2 = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(blob.Attributes.Uri, new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(blob.ServiceClient.Credentials.AccountName, account.Credentials.ExportBase64EncodedKey()));
StorageCredentials account = blob.ServiceClient.Credentials;
ICloudBlob blob2 = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(blob.Uri, new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(blob.ServiceClient.Credentials.AccountName, account.ExportBase64EncodedKey()));
BlobTransferHelper (Line 60)
//public void DownloadBlobAsync(Microsoft.WindowsAzure.StorageClient.CloudBlob blob, string LocalFile)
public void DownloadBlobAsync(Microsoft.WindowsAzure.Storage.Blob.CloudBlob blob, string LocalFile)

BlobTransferHelper (Line 62)
//Microsoft.WindowsAzure.StorageCredentialsAccountAndKey account = blob.ServiceClient.Credentials as Microsoft.WindowsAzure.StorageCredentialsAccountAndKey;
//ICloudBlob blob2 = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(blob.Attributes.Uri, new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(blob.ServiceClient.Credentials.AccountName, account.Credentials.ExportBase64EncodedKey()));
StorageCredentials account = blob.ServiceClient.Credentials;
ICloudBlob blob2 = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(blob.Uri, new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials(blob.ServiceClient.Credentials.AccountName, account.ExportBase64EncodedKey()));
MainPageViewModel.cs (Line 4)
//using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;

MainPageViewModel.cs (Line 125)
//foreach (var blobItem in containerReference.ListBlobs(new BlobRequestOptions() {
//    UseFlatBlobListing = true,
//}))
foreach (var blobItem in containerReference.ListBlobs(useFlatBlobListing:true))