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; } }
public ModelController(IHostingEnvironment environment, IConfiguration configuration, ILogger <ModelController> log, IPyNNServiceClient srv, IPyZMEServiceClient _zmeClient, IZSModelPredictionClient _zsClient, IPyTensorServiceClient tbClientInstance) { _environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.Configuration = configuration; this.nnclient = srv; this.Logger = log; this.zmeClient = _zmeClient; this.zsClient = _zsClient; this.tbClient = tbClientInstance; try { responseData = ModelPayload.Get(); dataResponseData = DataPayload.Get(); } catch (Exception ex) { //ILogger string error = ex.Message; } }