Beispiel #1
0
 public DraftManager()
 {
     this.harversters = new List <Harvester>();
     this.providers   = new List <Provider>();
     harvestFactory   = new HarvestFactory();
     providerFactory  = new ProviderFactory();
     this.mode        = "Full";
 }
 public string RegisterHarvester(List <string> arguments)
 {
     try
     {
         var harvester = HarvestFactory.CreatHarvester(arguments);
         this.harvesters[harvester.Id] = harvester;
         return($"Successfully registered {harvester.GetType()} - {harvester.Id}");
     }
     catch (Exception ex)
     {
         return(ex.Message);
     }
 }