We are using Telerik Reporting Rest service project in our server-side and as a report viewer we use HTML5 report viewer. There is server project (console app) which run the Telerik Reporting service. We defined CancelKeyPress (Ctrl+C) to close the console app. If we press Ctrl+C it will close successfully. Before closing if we make a request to http://localhost:5000/api/reports/formats using postman or browser then it will NOT close (See picture Server app after request.PNG). So, it says "Application is shutting down..." and it stays opened.
How to fix this issue?
You can use the attached demo project (ReportingServiceDemo.zip) to reproduce this issue. Startup project should be ServerConsole project which use CSharp.Net5.ReportingRestServiceCorsDemo project.