CourseWare Wiki
Search
Log In
old
courses
a4m39wa2
tutorials
08
Warning
This page is located in archive.
Table of Contents
Persistence - Blobs, Tables
Tutorial Tasks
Task 1 - Blob storage
Task 2 - Table storage
Persistence - Blobs, Tables
Presentation
wa2_azure_tutorial_b.pdf
Resources
http://msdn.microsoft.com/en-us/library/windowsazure/dd179355.aspx
http://msdn.microsoft.com/en-us/library/windowsazure/dd135733.aspx
http://en.wikipedia.org/wiki/HMAC
Tutorial Tasks
Task 1 - Blob storage
Implement interface ISimpleStorage using Blob storage
Download solution of previous tutorial
mvcapplication1.zip
}
Create CloudStorageAccount instance.
Implement getter Messages {get;}
Create instance of Cloud Blob Client
Get instance of particular CloudBlobContainer (if exists)
Get instance of particular CloudBlob (if exists);
Get content and convert it to List<string>, return.
Implement method AddMessage
Create instance of Cloud Blob Client
Get old content (using Messages {get;}
Create new content by adding actual message.
Get instance of particular CloudBlobContainer (if exists, if not create one)
Get instance of particular CloudBlob (if exists);
Upload new content into blob
This code can run on premiss - using your local IIS or development server
Task 2 - Table storage
Use prepared MessagesDataSource class for implemenation of ISimpleStorage using Azure Tables
Implement getter Messages {get;}
Get collection of message entries using Select() method.
Prepare List<string> collection for output
Implement method AddMessage
use AddMessage method of data source
courses/a4m39wa2/tutorials/08/start.txt
· Last modified: 2014/12/03 13:36 (external edit)