private void Cleanup() { if (this.prison.Created) { try { Logger.Info("Destroying prison for staging instance {0}", this.TaskId); this.prison.Destroy(); } catch (Exception ex) { Logger.Warning("Unable to cleanup application {0}. Exception: {1}", this.TaskId, ex.ToString()); } } Logger.Debug("Cleaning up directory {0}", this.workspace.BaseDir); DEAUtilities.RemoveReadOnlyAttribute(this.workspace.BaseDir); Directory.Delete(this.workspace.BaseDir, true); }
public void Cleanup() { DEAUtilities.RemoveReadOnlyAttribute(this.Workspace.BaseDir); Directory.Delete(this.Workspace.BaseDir, true); }