Ejemplo n.º 1
0
        public void Dispose()
        {
#if RECORD_MODE
            ICustomVisionTrainingClient client = BaseTests.GetTrainingClient(false);

            foreach (var iter in client.GetIterations(this.ProjectId))
            {
                if (!string.IsNullOrEmpty(iter.PublishName))
                {
                    client.UnpublishIteration(this.ProjectId, iter.Id);
                }
            }
            client.DeleteProject(this.ProjectId);
#endif
        }
Ejemplo n.º 2
0
 public static void CleanUpOldProjects(ICustomVisionTrainingClient client)
 {
     foreach (var project in client.GetProjects())
     {
         if (project.Name.StartsWith(ProjectPrefix))
         {
             System.Console.WriteLine("Cleaning old project: " + project.Name);
             foreach (var iter in client.GetIterations(project.Id))
             {
                 if (!string.IsNullOrEmpty(iter.PublishName))
                 {
                     client.UnpublishIteration(project.Id, iter.Id);
                 }
             }
             client.DeleteProject(project.Id);
         }
     }
 }
Ejemplo n.º 3
0
 public void ExcluirProjeto(string idDoProjeto)
 {
     ExcluirIteracoes(idDoProjeto);
     _servicoCognitivoDeVisaoPersonalizadaTreinamento.DeleteProject(new Guid(idDoProjeto));
 }