Beispiel #1
0
        public TableStorageSiteUrlRepository(IStorageQueueConfiguration configuration)
        {
            _storageAccount = CloudStorageAccount.Parse(configuration.GetConnectionString());

            _tableClient = _storageAccount.CreateCloudTableClient();
            _tableClient.GetTableReference(_tableName);
            _tableClient.GetTableReference(_tableName).CreateIfNotExists();

            _tableContext = _tableClient.GetTableServiceContext();
        }
        public TableStorageSiteUrlRepository(IStorageQueueConfiguration configuration)
        {
            _storageAccount = CloudStorageAccount.Parse(configuration.GetConnectionString());

            _tableClient = _storageAccount.CreateCloudTableClient();
            _tableClient.GetTableReference(_tableName);
            _tableClient.GetTableReference(_tableName).CreateIfNotExists();

            _tableContext = _tableClient.GetTableServiceContext();
        }
Beispiel #3
0
        public WindowsAzureQueueSiteResultReceiver(IStorageQueueConfiguration configuration)
        {
            _configuration = configuration;

            var connectionString   = _configuration.GetConnectionString();
            var queueToReceiveFrom = _configuration.GetIncomingQueueName();

            _client = CloudStorageAccount.Parse(connectionString).CreateCloudQueueClient();

            if (!string.IsNullOrEmpty(queueToReceiveFrom))
            {
                _incomingQueue = _client.GetQueueReference(queueToReceiveFrom);
                _incomingQueue.CreateIfNotExists();
            }
        }
        public WindowsAzureQueueSiteResultReceiver(IStorageQueueConfiguration configuration)
        {
            _configuration = configuration;

            var connectionString = _configuration.GetConnectionString();
            var queueToReceiveFrom = _configuration.GetIncomingQueueName();

            _client = CloudStorageAccount.Parse(connectionString).CreateCloudQueueClient();

            if (!string.IsNullOrEmpty(queueToReceiveFrom))
            {
                _incomingQueue = _client.GetQueueReference(queueToReceiveFrom);
                _incomingQueue.CreateIfNotExists();
            }
        }