protected override void InternalExecute() { if (!string.IsNullOrEmpty(this.Activation)) { this.activation = (CSActivation)Enum.Parse(typeof(CSActivation), this.Activation, true); } this.GetPathToFramework(); switch (this.TaskAction) { case "AddComponent": this.AddComponent(); break; case "SetTransactionSupport": this.SetTransactionSupport(); break; case "SetConstructor": this.SetConstructor(); break; case "DeleteApplication": this.DeleteApplication(); break; case "ShutDownApplication": this.ShutDownApplication(); break; case "StartApplication": this.StartApplication(); break; case "UpdateApplication": this.UpdateApplication(); break; case "CheckApplicationExists": this.Exists = this.CheckApplicationExists(); break; case "RemoveComponent": this.RemoveComponent(); break; default: this.Log.LogError(string.Format(CultureInfo.CurrentCulture, "Invalid TaskAction passed: {0}", this.TaskAction)); return; } }
protected override void InternalExecute() { if (!string.IsNullOrEmpty(this.Activation)) { this.activation = (CSActivation)Enum.Parse(typeof(CSActivation), this.Activation, true); } this.GetPathToFramework(); switch (this.TaskAction) { case "AddComponent": this.AddComponent(); break; case "SetTransactionSupport": this.SetTransactionSupport(); break; case "SetConstructor": this.SetConstructor(); break; case "DeleteApplication": this.DeleteApplication(); break; case "ShutDownApplication": this.ShutDownApplication(); break; case "StartApplication": this.StartApplication(); break; case "UpdateApplication": this.UpdateApplication(); break; case "CheckApplicationExists": this.Exists = this.CheckApplicationExists(); break; case "RemoveComponent": this.RemoveComponent(); break; default: this.Log.LogError(string.Format(CultureInfo.CurrentCulture, "Invalid TaskAction passed: {0}", this.TaskAction)); return; } }