Example #1
0
        public WhingePoolApplicationContext(IWhingePoolConfiguration configuration)
            : base(configuration)
        {
            _whingersTable = new WhingersTable(CloudStorageAccount,
                                               configuration.WhingersTableName);

            _whingePoolsTable = new WhingePoolsTable(CloudStorageAccount,
                                                     configuration.WhingePoolsTableName);

            _whingesByWhingerTable = new WhingesByWhingerTable(CloudStorageAccount,
                                                               configuration.WhingesByWhingerTableName);

            _whingesByWhingePoolTable = new WhingesByWhingePoolTable(CloudStorageAccount,
                                                                     configuration.WhingesByWhingePoolTableName);
        }
        public WhingePoolApplicationContext(IWhingePoolConfiguration configuration)
            : base(configuration)
        {
            _whingersTable = new WhingersTable(CloudStorageAccount,
                                               configuration.WhingersTableName);

            _whingePoolsTable = new WhingePoolsTable(CloudStorageAccount,
                                                     configuration.WhingePoolsTableName);

            _whingesByWhingerTable = new WhingesByWhingerTable(CloudStorageAccount,
                                                               configuration.WhingesByWhingerTableName);

            _whingesByWhingePoolTable = new WhingesByWhingePoolTable(CloudStorageAccount,
                                                                     configuration.WhingesByWhingePoolTableName);
        }
 public WhingePoolConfiguration(IAzureStorageConfiguration azureStorageConfiguration,
                                ICommandHandlerConfiguration commandHandlerConfiguration,
                                ICloudRunnerConfiguration commandQueue,
                                IWhingePoolConfiguration whingePoolConfiguration)
 {
     StorageAccount = azureStorageConfiguration.StorageAccount;
     StorageAccountKey = azureStorageConfiguration.StorageAccountKey;
     RegisteredCommandHandlersBlobContainerName = commandHandlerConfiguration.RegisteredCommandHandlersBlobContainerName;
     RegisteredCommandHandlersTableName = commandHandlerConfiguration.RegisteredCommandHandlersTableName;
     CommandResultsTableName = commandQueue.CommandResultsTableName;
     CommandQueueName = commandQueue.CommandQueueName;
     WhingesTableName = whingePoolConfiguration.WhingesTableName;
     WhingersTableName = whingePoolConfiguration.WhingersTableName;
     WhingePoolsTableName = whingePoolConfiguration.WhingePoolsTableName;
     WhingesByWhingerTableName = whingePoolConfiguration.WhingesByWhingerTableName;
     WhingesByWhingePoolTableName = whingePoolConfiguration.WhingesByWhingePoolTableName;
 }
Example #4
0
 public WhingePoolConfiguration(IAzureStorageConfiguration azureStorageConfiguration,
                                ICommandHandlerConfiguration commandHandlerConfiguration,
                                ICloudRunnerConfiguration commandQueue,
                                IWhingePoolConfiguration whingePoolConfiguration)
 {
     StorageAccount    = azureStorageConfiguration.StorageAccount;
     StorageAccountKey = azureStorageConfiguration.StorageAccountKey;
     RegisteredCommandHandlersBlobContainerName = commandHandlerConfiguration.RegisteredCommandHandlersBlobContainerName;
     RegisteredCommandHandlersTableName         = commandHandlerConfiguration.RegisteredCommandHandlersTableName;
     CommandResultsTableName      = commandQueue.CommandResultsTableName;
     CommandQueueName             = commandQueue.CommandQueueName;
     WhingesTableName             = whingePoolConfiguration.WhingesTableName;
     WhingersTableName            = whingePoolConfiguration.WhingersTableName;
     WhingePoolsTableName         = whingePoolConfiguration.WhingePoolsTableName;
     WhingesByWhingerTableName    = whingePoolConfiguration.WhingesByWhingerTableName;
     WhingesByWhingePoolTableName = whingePoolConfiguration.WhingesByWhingePoolTableName;
 }
 public void GivenAWhingePoolConfigurationOf(Table table)
 {
     _whingePoolConfiguration = table.CreateInstance<WhingePoolConfiguration>();
 }
Example #6
0
 public void GivenAWhingePoolConfigurationOf(Table table)
 {
     _whingePoolConfiguration = table.CreateInstance <WhingePoolConfiguration>();
 }