...
Now add a line of code that will enable you to use the executable which normally runs the Kestrel webserver with your site to run Lynicon service and setup commands:
Code Block | ||
---|---|---|
| ||
if (Lynicon.Commands.CommandRunner.InterceptAndRunCommands(host.Services, args))
return; |
Add the highlighted line of code above into your Program.cs file in the root of your project.
...