Introducing Windows Azure- P28:The cloud platform is getting more and more attractive to the computing world. Today, service-oriented architecture (SOA) and aspect-oriented programming (AOP) techniques are widely used in enterprise solutions. A question an IT management team or a software development team may ask is, what is the next trend going to be? Cloud computing seems to be the right answer. | CHAPTER 3 WORKING WITH CLOUD QUEUE AND BLOB STORAGE string blobName try BlobProperties properties new BlobProperties blobName NameValueCollection metadata new NameValueCollection metadata byte BlobContents blobContents new BlobContents new MemoryStream _command new DeleteBlobStatus blobContents properties true _command catch Exception ex Listing 3-23. Set Flag from QueuedBackgroundWorker to Interrupt Create or Delete Blob Actions private void btnCancel Click object sender EventArgs e false true true false Actiong aborted. Note To run this application from the local development environment the development storage service and development fabric must be started first. The following screenshots are the test results of Exercise 3-4. 108 CHAPTER 3 WORKING WITH CLOUD QUEUE AND BLOB STORAGE First we upload a large amount of data to blob storage. The results are shown in Figures 3-13 and 3-14. Figure 3-13. File of size 278 MB created and uploaded to blob taking seconds in the local development environment with the system configuration shown in Figure 3-14 Figure 3-14. System conf iguration to run Exercise 3-4 We can also upload a small amount of data to blob storage. 109 CHAPTER 3 WORKING WITH CLOUD QUEUE AND BLOB STORAGE This tool of course can also be used to transmit any size of data between local systems and cloud blob storage. Figure 3-15 shows an example using this tool to upload a small file to a blob storage table. Note that the file name created by the tool in this case has no suffix. Figure 3-15. Creating a small blob Since the job is done from a queued worker thread running in