Exemple #1
0
        private void Init(AzureConsumerType consumerType, string tablePrefix, string connectionString, string deploymentId)
        {
            Assert.IsNotNull(tablePrefix, "tablePrefix != null");
            Assert.IsNotNull(connectionString, "connectionString != null");

            this.Type         = consumerType;
            this.TablesPrefix = tablePrefix;
            this.Connection   = new StorageConnection();
            this.ParseConnectionString(connectionString.ToCharArray());
            // TODO: We need to improve this Logic.
            if (deploymentId == null)
            {
                this.DeploymentId = this.GetAzureTableDeploymentId();
            }
        }
Exemple #2
0
 public AzureTableConsumer(AzureConsumerType consumerType, string tablePrefix, string connectionString)
 {
     this.Init(consumerType, tablePrefix, connectionString, null);
 }
Exemple #3
0
 public AzureTableConsumer(AzureConsumerType consumerType, string tablePrefix, string connectionString, string deploymentId)
 {
     Assert.IsNotEmptyOrNull(deploymentId, "deploymentId != null");
     this.Init(consumerType, tablePrefix, connectionString, deploymentId);
 }