I am creating a ServiceStack console application that works fine, but of course I have to leave it running after starting it from the command line. I want to run this as a windows service.
I look at this wiki page that says you can run SS as a Windows service.
https://github.com/ServiceStack/ServiceStack/wiki/Self-hosting
I did not quite understand how to do this. This StarterTemplate is referenced 2 years ago. Am I cloning this project and then copying the code into it?
https://github.com/ServiceStack/ServiceStack.Examples/tree/master/src/StarterTemplates/WinServiceAppHost
The easiest way is to create a ServiceStack Windows Service Empty project in ServiceStackVS VS.NET Extension .
Otherwise, you can clone the WinService project and create a new Windows service project from Visual Studio and copy the approach into Program.cs .
A later ServiceStack Windows Service is the Razor Rockstars website , which runs on the Windows Service Host , whose template was based on the StartStart.examples Starter template.
I use topshelf to run the servicestack console application as a windows service. This works very well for me. https://github.com/Topshelf/Topshelf
Source: https://habr.com/ru/post/947684/More articles:How to Make Behavior Contain Other Behaviors in a Reactive Banana - haskellHow can I make the STL memory cache clear? - c ++Study Guide for Laravel 4 - Authentication - laravelGrails: What is the best way to access domain classes from src / groovy class? - grailsGame tournaments for the Game Center sandbox will not show ratings other than local points - iosHow to fix my numberOfDigits function - performanceGame centers lost points - iosHow to get current value from ReactiveCocoa signal? - iosBinding Setter Property Value in WPF - c #Kassandra: how to identify and enumerate nodes containing a specific string (replica)? - cassandraAll Articles