I'm having a .net core 6.0 console app using Quartz. I'm trying to use SilkierQuartz to show the jobs. I followed the instruction present at https://github.com/maikebing/SilkierQuartz but it is not clear. I enabled ConfigureWebHostDefaults on my console app and it starts a listening on localhost:5000.However when I navigate to the url I see nothing and a 404 in the logs.
我有一个使用Quartz的.net内核6.0控制台应用程序。我正试着用SilkierQuartz来展示工作。我听从了在场的指示https://github.com/maikebing/SilkierQuartz但目前还不清楚。我在控制台应用程序上启用了ConfigureWebHostDefaults,它在localhost:5000上开始侦听。然而,当我导航到url时,我在日志中什么也看不到,只有404。
Can someone help me with how to use the SilkierQuartz package.
有人能帮我如何使用SilkierQuartz包装吗。
更多回答
优秀答案推荐
Basically, you need to create an asp.net core app, not your console app. The problem here is you are not having the full feldge asp.net core web app.
基本上,你需要创建一个asp.net核心应用程序,而不是控制台应用程序。这里的问题是你没有完整的feldge asp.net核心网络应用程序。
更多回答
Wouldn't ConfigureWebHostDefaults along with adding ConfigureServices and Configure make it a full-fledged web app?
ConfigureWebHostDefaults以及添加ConfigureServices和Configure不会使其成为一个成熟的web应用程序吗?
No it does not contain asp.net core packages. There are two ways either add all this stuff manually or do it with asp.net core web app template. I would prefer the with project template which has all things by default
不,它不包含asp.net核心包。有两种方法可以手动添加所有这些内容,也可以使用asp.net核心web应用程序模板进行添加。我更喜欢默认情况下具有所有内容的with项目模板
我是一名优秀的程序员,十分优秀!