C# Class API.DataAccess.StorageManager

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public GetPlatformTagsAsync ( ) : Task
Résultat Task

GetScheduleAsync() public méthode

public GetScheduleAsync ( ) : Task
Résultat Task

GetStaticDataAsync() public méthode

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

SetPlatformTags() public méthode

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

SetSchedule() public méthode

public SetSchedule ( string scheduleJson ) : void
scheduleJson string
Résultat void

SetStaticData() public méthode

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

StorageManager() public méthode

public StorageManager ( AppSettings appSettings ) : API.Models
appSettings AppSettings
Résultat API.Models