-
Hi, first of all this is brilliant and thank you for making it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Could you provide an explanation of what the architecture is here? The bot runs in the background and doesn't involve itself with the web pipeline at all. This kinda sounds like you're using a host that starts and stops the host for the lifetime of the web request. |
Beta Was this translation helpful? Give feedback.
-
Ahh okay, I was hoping to hear that should be the case normally. Haven't tested on live servers yet, right now this through Visual Studio's IIS on Windows 10. Unless that has to do with it I think I might've configured something wrong then, but not sure what.
I appreciate the quick response, thanks for your time EDIT: Wait, I think maybe it's because I missed the background worker step lol, I'll update this comment and close it if that's the case. Testing right now |
Beta Was this translation helpful? Give feedback.
Ahh okay, I was hoping to hear that should be the case normally. Haven't tested on live servers yet, right now this through Visual Studio's IIS on Windows 10. Unless that has to do with it I think I might've configured something wrong then, but not sure what.
I have made a sample project to illustrate what's going on.First I created a new ASP.NET Core 5.0 project, this time chose Razor Pages instead of MVC (same outcome).
Then I overwrote the default project files with SampleBotSimple from your repository, changing the token and prefix in appsettings.json.
I have it set up so you can test it yourself if you'd like, in Release mode it uses the original HostBuilder which finishes loading a…