You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using JSReport as web server in my Asp.Net Core app, and everything seems to be working great. My problem is i have a cancellation token i pass and RenderAsync seems to ignore it. Any idea what can cause this?
JSReport initialization in startup: var js = new LocalReporting() .UseBinary(reportingBinary) .Configure(c => { c = c.CreateSamples(); c.HttpPort = 12121; c.Chrome = new ChromeConfiguration {Timeout = 10000000}; return c; }) .KillRunningJsReportProcesses() .AsWebServer() .Create(); services.AddJsReport(js);
Usage of JSReport: var template = new Template { Content = await GenerateTemplate(templateName, model), Engine = Engine.None, Recipe = Recipe.ChromePdf, Chrome = new Chrome { Landscape = false } }; var report = await _jsReportMvcService.RenderAsync(new RenderRequest { Template = template,Options = new RenderOptions { Timeout = 10000000 } }, _token);
NOTE: When RenderAsync() is called, _token is already cancelled.
The text was updated successfully, but these errors were encountered:
Hello,
I am using JSReport as web server in my Asp.Net Core app, and everything seems to be working great. My problem is i have a cancellation token i pass and RenderAsync seems to ignore it. Any idea what can cause this?
JSReport initialization in startup:
var js = new LocalReporting() .UseBinary(reportingBinary) .Configure(c => { c = c.CreateSamples(); c.HttpPort = 12121; c.Chrome = new ChromeConfiguration {Timeout = 10000000}; return c; }) .KillRunningJsReportProcesses() .AsWebServer() .Create(); services.AddJsReport(js);
Usage of JSReport:
var template = new Template { Content = await GenerateTemplate(templateName, model), Engine = Engine.None, Recipe = Recipe.ChromePdf, Chrome = new Chrome { Landscape = false } }; var report = await _jsReportMvcService.RenderAsync(new RenderRequest { Template = template,Options = new RenderOptions { Timeout = 10000000 } }, _token);
NOTE: When RenderAsync() is called, _token is already cancelled.
The text was updated successfully, but these errors were encountered: