A class used to orchestrate a series of steps in the process of deployment
Наследование: 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;
 }
Пример #3
0
 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;
 }