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