public async Task Stop() { if (this.Deployment.Status != DeploymentStatus.Running) { return; } TakoDeploy?.Stop(); }
public async Task Validate() { if (this.Deployment.Status == DeploymentStatus.Running) { DeploymentEvent?.Invoke(this.Deployment, new ProgressEventArgs(new InvalidOperationException("Validation is already running."))); } else { TakoDeploy = new TakoDeploy(this.Deployment); await TakoDeploy.ValidateDeploy(e => DeploymentEvent?.Invoke(this, e)); } }
public async Task Deploy(DeployOptions options = null) { if (options == null) { options = new DeployOptions(); } if (this.Deployment.Status == DeploymentStatus.Running) { DeploymentEvent?.Invoke(this.Deployment, new ProgressEventArgs(new InvalidOperationException("Deployment is already running."))); } else { TakoDeploy = new TakoDeploy(this.Deployment); await TakoDeploy.BeginDeploy(options, e => DeploymentEvent?.Invoke(this, e)); } }