-
Notifications
You must be signed in to change notification settings - Fork 8
Initialize Azure Storage
Jef King edited this page Mar 15, 2015
·
15 revisions
One of the best pieces of this framework is to enable you to isolate the creation of the resources that you need when your application loads up. A series of classes help you build your storage story easily and quickly.
Initialize table; creates table if it doesn't already exist
var table = new TableStorage("table", "UseDevelopmentStorage=true");
new InitializeStorageTask(table);
Initialize queue; creates queue if it doesn't already exist
var queue = new StorageQueue("queue", "UseDevelopmentStorage=true");
new InitializeStorageTask(queue);
Initialize container; creates container if it doesn't already exist
var container = new Container("container", "UseDevelopmentStorage=true");
new InitializeStorageTask(container);
Initialize share; creates file share if it doesn't already exist
var share = new FileShare("share", "UseDevelopmentStorage=true");
new InitializeStorageTask(share);
These tasks leverage King.Azure.