A class used to orchestrate a series of steps in the process of deployment
Inheritance: IServiceTransaction
 public void Execute(DeploymentParameters deploymentParams)
 {
     var orchestrator = new ServiceOrchestrator();
     var databaseStep = new CreateDatabase(deploymentParams.SubscriptionId, deploymentParams.PublishSettingsFile, deploymentParams.DatabaseName, deploymentParams.ScriptsDirectory, deploymentParams.Username, deploymentParams.Password, ref orchestrator, deploymentParams.DeploymentLocation);
     databaseStep.ExecuteDeploymentStep().Commit();
     CommandHelpers.PrintResult(databaseStep.ConnectionString, databaseStep.GetSuccessText());
 }
示例#2
0
 public CreateStorage(string subscriptionId, string publishSettings, string storageName, ref ServiceOrchestrator orchestrator, string location = LocationConstants.NorthEurope)
 {
     SubscriptionId = subscriptionId;
     PublishSettings = publishSettings;
     StorageName = storageName;
     Location = location;
     Orchestrator = orchestrator;
 }
 public void Execute(DeploymentParameters deploymentParams)
 {
     var orchestrator = new ServiceOrchestrator();
     var storageStep = new CreateStorage(deploymentParams.SubscriptionId, deploymentParams.PublishSettingsFile, deploymentParams.StorageAccountName, ref orchestrator, deploymentParams.DeploymentLocation);
     storageStep.ExecuteDeploymentStep().Commit();
     storageStep.PostProcess();
     CommandHelpers.PrintResult(storageStep.ConnectionString, storageStep.GetSuccessText());
 }
示例#4
0
 public CreateDatabase(string subscriptionId, string publishSettings, string databaseName, string scriptDirectory, string userName, string password, ref ServiceOrchestrator orchestrator, string location = LocationConstants.NorthEurope)
 {
     SubscriptionId = subscriptionId;
     PublishSettings = publishSettings;
     DatabaseName = databaseName;
     ScriptDirectory = scriptDirectory;
     Username = userName;
     Password = password;
     Location = location;
     Orchestrator = orchestrator;
 }