public void Dispose()
 {
     foreach (ClusterIdentifier id in ClusterIdentifiers)
     {
         try
         {
             _deleteClusterSample.DeleteCluster(ProjectId, RegionId, id.RealmId, id.ClusterId);
         }
         catch (Exception e)
         {
             Console.WriteLine("Delete failed for cluster: " + id.ClusterId + " with error: " + e.ToString());
         }
     }
     foreach (ConfigIdentifier id in ConfigIdentifiers)
     {
         try
         {
             _deleteConfigSample.DeleteConfig(ProjectId, RegionId, id.DeploymentId, id.ConfigId);
         }
         catch (Exception e)
         {
             Console.WriteLine("Delete failed for config: " + id.ConfigId + " with error: " + e.ToString());
         }
     }
     foreach (string id in RealmIds)
     {
         try
         {
             _deleteRealmSample.DeleteRealm(ProjectId, RegionId, id);
         }
         catch (Exception e)
         {
             Console.WriteLine("Delete failed for realm: " + id + " with error: " + e.ToString());
         }
     }
     foreach (string id in DeploymentIds)
     {
         try
         {
             _deleteDeploymentSample.DeleteDeployment(ProjectId, id);
         }
         catch (Exception e)
         {
             Console.WriteLine("Delete failed for deployment: " + id + " with error: " + e.ToString());
         }
     }
 }
Esempio n. 2
0
 public void DeletesDeployment()
 {
     _deleteSample.DeleteDeployment(_fixture.ProjectId, _deploymentId);
 }