Example #1
0
 /// <summary>
 /// Testing hook for Cleanup
 /// </summary>
 internal static void DeleteQueueAndTable(string connectionString, string queueName, string tableName)
 {
     AzureTableProvider.DeleteTable(connectionString, tableName);
     AzureQueueProvider.DeleteQueue(connectionString, queueName);
 }
Example #2
0
 /// <summary>
 /// Creates an instance of the scheduler.
 /// Azure scheduler needs 2 things:
 /// 1. Azure Queue
 /// 2. Azure Table
 ///
 /// Queues are used to send messages which arrive at scheduled time.
 /// Tables are used to manage state and versions.
 /// </summary>
 /// <param name="connectionString">
 /// Azure Storage Connection String
 /// </param>
 /// <param name="queueName">
 /// Name of the Queue
 /// </param>
 /// <param name="tableName">
 /// Name of the Table
 /// </param>
 internal AzureScheduler(string connectionString, string queueName, string tableName)
 {
     azureQueueProvider = new AzureQueueProvider(connectionString, queueName);
     azureTableProvider = new AzureTableProvider(connectionString, tableName);
 }