public AssetController(IHostingEnvironment environment, IConfiguration configuration, ILogger <AssetController> log, IPyJupyterServiceClient _jupyterClient, IPyTensorServiceClient _tbClient) { //update _environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.Configuration = configuration; this.Logger = log; this.jupyterClient = _jupyterClient; this.tbClient = _tbClient; }
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; } }