Пример #1
0
 public TaskController(IWebHostEnvironment environment, IConfiguration configuration, ILogger <TaskController> log, IPyNNServiceClient srv, IPyAutoMLServiceClient automlSrv)
 {
     _environment       = environment ?? throw new ArgumentNullException(nameof(environment));
     this.Configuration = configuration;
     this.nnclient      = srv;
     this.Logger        = log;
     this.autoMLclient  = automlSrv;
     try
     {
         taskResponse  = TaskPayload.Get();
         modelResponse = ModelPayload.Get();
     }
     catch (Exception ex)
     {
         //ILogger
         string error = ex.Message;
     }
 }