Ejemplo n.º 1
0
 public async Task Stop()
 {
     if (this.Deployment.Status != DeploymentStatus.Running)
     {
         return;
     }
     TakoDeploy?.Stop();
 }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
        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));
            }
        }