C# Class Microsoft.AspNet.WebHooks.Storage.StorageManager

Inheritance: IStorageManager
Mostra file Open project: aspnet/WebHooks Class Usage Examples

Public Methods

Method Description
AddMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, IEnumerable messages ) : Task
AddPartitionKeyConstraint ( Microsoft.WindowsAzure.Storage.Table.TableQuery query, string partitionKey ) : void
DeleteMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, IEnumerable messages ) : Task
ExecuteAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableOperation operation ) : Task
ExecuteBatchAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, TableBatchOperation batch ) : Task>
ExecuteDeleteAllAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, string partitionKey, string filter ) : Task
ExecuteQueryAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableQuery query ) : Task>
ExecuteRetrievalAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, string partitionKey, string rowKey ) : Task
GetAzureStorageConnectionString ( SettingsDictionary settings ) : string
GetCloudQueue ( string connectionString, string queueName ) : Microsoft.WindowsAzure.Storage.Queue.CloudQueue
GetCloudStorageAccount ( string connectionString ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
GetCloudTable ( string connectionString, string tableName ) : Microsoft.WindowsAzure.Storage.Table.CloudTable
GetMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, int messageCount, System.TimeSpan timeout ) : Task>
GetStorageErrorMessage ( Exception ex ) : string
GetStorageStatusCode ( Exception ex ) : int
StorageManager ( ILogger logger ) : System

Initializes a new instance of the StorageManager class with the given logger.

Private Methods

Method Description
AddQueryConstraint ( Microsoft.WindowsAzure.Storage.Table.TableQuery query, string constraint ) : void
GetInstance ( ILogger logger ) : IStorageManager
GetLookupKey ( string connectionString, string identifier ) : string

Method Details

AddMessagesAsync() public method

public AddMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, IEnumerable messages ) : Task
queue Microsoft.WindowsAzure.Storage.Queue.CloudQueue
messages IEnumerable
return Task

AddPartitionKeyConstraint() public method

public AddPartitionKeyConstraint ( Microsoft.WindowsAzure.Storage.Table.TableQuery query, string partitionKey ) : void
query Microsoft.WindowsAzure.Storage.Table.TableQuery
partitionKey string
return void

DeleteMessagesAsync() public method

public DeleteMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, IEnumerable messages ) : Task
queue Microsoft.WindowsAzure.Storage.Queue.CloudQueue
messages IEnumerable
return Task

ExecuteAsync() public method

public ExecuteAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableOperation operation ) : Task
table Microsoft.WindowsAzure.Storage.Table.CloudTable
operation Microsoft.WindowsAzure.Storage.Table.TableOperation
return Task

ExecuteBatchAsync() public method

public ExecuteBatchAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, TableBatchOperation batch ) : Task>
table Microsoft.WindowsAzure.Storage.Table.CloudTable
batch TableBatchOperation
return Task>

ExecuteDeleteAllAsync() public method

public ExecuteDeleteAllAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, string partitionKey, string filter ) : Task
table Microsoft.WindowsAzure.Storage.Table.CloudTable
partitionKey string
filter string
return Task

ExecuteQueryAsync() public method

public ExecuteQueryAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableQuery query ) : Task>
table Microsoft.WindowsAzure.Storage.Table.CloudTable
query Microsoft.WindowsAzure.Storage.Table.TableQuery
return Task>

ExecuteRetrievalAsync() public method

public ExecuteRetrievalAsync ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, string partitionKey, string rowKey ) : Task
table Microsoft.WindowsAzure.Storage.Table.CloudTable
partitionKey string
rowKey string
return Task

GetAzureStorageConnectionString() public method

public GetAzureStorageConnectionString ( SettingsDictionary settings ) : string
settings SettingsDictionary
return string

GetCloudQueue() public method

public GetCloudQueue ( string connectionString, string queueName ) : Microsoft.WindowsAzure.Storage.Queue.CloudQueue
connectionString string
queueName string
return Microsoft.WindowsAzure.Storage.Queue.CloudQueue

GetCloudStorageAccount() public method

public GetCloudStorageAccount ( string connectionString ) : Microsoft.WindowsAzure.Storage.CloudStorageAccount
connectionString string
return Microsoft.WindowsAzure.Storage.CloudStorageAccount

GetCloudTable() public method

public GetCloudTable ( string connectionString, string tableName ) : Microsoft.WindowsAzure.Storage.Table.CloudTable
connectionString string
tableName string
return Microsoft.WindowsAzure.Storage.Table.CloudTable

GetMessagesAsync() public method

public GetMessagesAsync ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, int messageCount, System.TimeSpan timeout ) : Task>
queue Microsoft.WindowsAzure.Storage.Queue.CloudQueue
messageCount int
timeout System.TimeSpan
return Task>

GetStorageErrorMessage() public method

public GetStorageErrorMessage ( Exception ex ) : string
ex System.Exception
return string

GetStorageStatusCode() public method

public GetStorageStatusCode ( Exception ex ) : int
ex System.Exception
return int

StorageManager() public method

Initializes a new instance of the StorageManager class with the given logger.
public StorageManager ( ILogger logger ) : System
logger ILogger
return System