C# Class API.DataAccess.StorageManager

Container for functionality which handles Blob storage in Azure.
Show file Open project: RikkiGibson/Corvallis-Bus-Server Class Usage Examples

Public Methods

Method Description
GetPlatformTagsAsync ( ) : Task
GetScheduleAsync ( ) : Task
GetStaticDataAsync ( ) : Task

Gets the JSON-encoded CTS routes from Azure.

SetPlatformTags ( string platformTagsJson ) : void

Puts a dictionary that takes a PlatformNo (5-digit number) to PlatformTag (3-digit number).

SetSchedule ( string scheduleJson ) : void
SetStaticData ( string staticDataJson ) : void

Puts a list of CTS Routes into an Azure Blob as JSON.

StorageManager ( AppSettings appSettings ) : API.Models

Private Methods

Method Description
GetBlockBlob ( string blockBlobName ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob

Given the name of a block blob, gets a reference to allow read/write to that blob.

Method Details

GetPlatformTagsAsync() public method

public GetPlatformTagsAsync ( ) : Task
return Task

GetScheduleAsync() public method

public GetScheduleAsync ( ) : Task
return Task

GetStaticDataAsync() public method

Gets the JSON-encoded CTS routes from Azure.
public GetStaticDataAsync ( ) : Task
return Task

SetPlatformTags() public method

Puts a dictionary that takes a PlatformNo (5-digit number) to PlatformTag (3-digit number).
public SetPlatformTags ( string platformTagsJson ) : void
platformTagsJson string
return void

SetSchedule() public method

public SetSchedule ( string scheduleJson ) : void
scheduleJson string
return void

SetStaticData() public method

Puts a list of CTS Routes into an Azure Blob as JSON.
public SetStaticData ( string staticDataJson ) : void
staticDataJson string
return void

StorageManager() public method

public StorageManager ( AppSettings appSettings ) : API.Models
appSettings AppSettings
return API.Models