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(); } }
public AzureTableConsumer(AzureConsumerType consumerType, string tablePrefix, string connectionString) { this.Init(consumerType, tablePrefix, connectionString, null); }
public AzureTableConsumer(AzureConsumerType consumerType, string tablePrefix, string connectionString, string deploymentId) { Assert.IsNotEmptyOrNull(deploymentId, "deploymentId != null"); this.Init(consumerType, tablePrefix, connectionString, deploymentId); }