public CodeController(IHostingEnvironment environment, IConfiguration configuration, ILogger <CodeController> log, IPyJupyterServiceClient _jupyterClient, IPyCompile _pyCodeCompile) { //update _environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.Configuration = configuration; this.jupyterClient = _jupyterClient; this.pyCompileClient = _pyCodeCompile; this.Logger = log; this.BASEURLJUP = Configuration["JupyterServer:srvurl"]; try { codeResponse = CodePayload.Get(); } catch (Exception ex) { Logger.LogCritical(ex, ex.StackTrace); } }
public CodeController(IWebHostEnvironment environment, IConfiguration configuration, ILogger <CodeController> log, IPyJupyterServiceClient _jupyterClient, IPyCompile _pyCodeCompile, IScheduler factory) { //update _environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.Configuration = configuration; this.jupyterClient = _jupyterClient; this.pyCompileClient = _pyCodeCompile; _scheduler = factory; this.Logger = log; this.BASEURLJUP = Configuration["JupyterServer:srvurl"]; try { codeResponse = CodePayload.Get().Where(c => c.Name.Contains("-checkpoint.ipynb") == false).ToList <CodeResponse>(); } catch (Exception ex) { Logger.LogCritical(ex, ex.StackTrace); } }