C# Класс API.DataAccess.StorageManager

Container for functionality which handles Blob storage in Azure.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

GetPlatformTagsAsync() публичный Метод

public GetPlatformTagsAsync ( ) : Task
Результат Task

GetScheduleAsync() публичный Метод

public GetScheduleAsync ( ) : Task
Результат Task

GetStaticDataAsync() публичный Метод

Gets the JSON-encoded CTS routes from Azure.
public GetStaticDataAsync ( ) : Task
Результат Task

SetPlatformTags() публичный Метод

Puts a dictionary that takes a PlatformNo (5-digit number) to PlatformTag (3-digit number).
public SetPlatformTags ( string platformTagsJson ) : void
platformTagsJson string
Результат void

SetSchedule() публичный Метод

public SetSchedule ( string scheduleJson ) : void
scheduleJson string
Результат void

SetStaticData() публичный Метод

Puts a list of CTS Routes into an Azure Blob as JSON.
public SetStaticData ( string staticDataJson ) : void
staticDataJson string
Результат void

StorageManager() публичный Метод

public StorageManager ( AppSettings appSettings ) : API.Models
appSettings AppSettings
Результат API.Models